Pages template
P

Pages template

Notion + Nextjs based boilerplate template with Material UI Theme Control

Setup

To be able to use this as an template for multiple projects you can use another package called custom-templates and clone this repo into your templates folder.
git clone https://github.com/xrehpicx/pages-notion-nextjs.git

Configure

site.config.ts can be used to configure the notion page you want to render.
Warning: Make sure you set your node version of your hosting to 14.x in for link preview images to work
  1. Get rootNotionPageId from your notion page url
    1. Your root notion page is your main page and will be mapped to your / url
      notion image
      From the link https://xrehpicx.notion.site/Pages-template-945f21e491264a8192d8ff63b28a45d8 your rootNotionPageId would be 945f21e491264a8192d8ff63b28a45d8
 
  1. Changing Theme
    1. The colors of the website can be changed by changing the theme.tsx file
      export const defaultdarkpallete: PaletteOptions = { mode: 'dark', text: { primary: '#fff' }, primary: { main: '#00FFCA' }, secondary: { main: '#ff6060' }, background: { paper: '#0e1118', default: '#06080c' } }
 

Demos

 

References

pages-notion-nextjs
xrehpicxUpdated Mar 17, 2023
nextjs-notion-starter-kit
transitive-bullshitUpdated Feb 8, 2025
react-notion-x
NotionXUpdated Feb 7, 2025