This is a Next.js project bootstrapped using create-next-app
with Material UI installed and already made theme configuration for easier theming in your app.
Note
This example only change color theme, but not whole ThemeOptions, so if you want to modify other than palette, you have to modify it here.
You only need to modify themes in theme.tsx:
- add theme name in here.
- then create your theme object in this variable.
- toggle or change theme using
useCustomTheme
from"@/config/theme"
, see example here.
- adapt material 3 (at least for now, until official MUI release v7 stable)
To learn more about this example:
- Next.js documentation - learn about Next.js features and API.
- Customizing Material UI - approaches to customizing Material UI.
- This example was a modified version of Material UI Next.js TypeScript example