Open aleksei-berezkin opened 3 days ago
I am putting this issue to high priority.
I guess we should transfer this issue to https://github.com/mui/pigment-css? I mean why should it be any different in Material UI compared to in Pigment CSS https://github.com/mui/pigment-css?tab=readme-ov-file#switching-color-schemes?
Steps to reproduce
Link to live example: https://github.com/aleksei-berezkin/mui-pigment-example/
Steps:
getSelector
somewhere in theme created innext.config.ts
Current behavior
getSelector
into an object passed tocreateTheme()
— doesn't compilecreateTheme()
toextendTheme()
(from'@pigment-css/nextjs-plugin'
) doesn't work —theme.spacing
is nowundefined
inpage.tsx
extendTheme({...createTheme()})
doesn't compileExpected behavior
There should be a documented way to switch themes manually
Context
No response
Your environment
Search keywords: Pigment, material-pigment-css, palette mode