With Pigment CSS, it's unclear how to manually switch palette mode (light / dark) #44384
Labels
package: material-ui
Specific to @mui/material
package: pigment-css
Specific to @pigment-css/*
support: docs-feedback
Feedback from documentation page
v6.x migration
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
The text was updated successfully, but these errors were encountered: