-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-ui] Unable to customize palettes of colorSchemes #43508
Comments
It doesn't look like this bug report has enough info for one of us to reproduce it. |
My bad, unintentionally hit "Enter" before finishing the text :) |
I am checking… |
I is a bug to me. For a workaround, you can add createTheme({
cssVariables: true,
colorSchemes: …
}) |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @Gramdel! How was your experience with our support team? |
Steps to reproduce
I encountered an issue while migrating from MUI v5.16 to v6.
I have the following code for customizing palettes with new
colorSchemes
approach:Current behavior
Color of
theme.colorSchemes.dark.palette.background.default
is not changed (stays '#121212').Instead, a new property
palette.palette
is created.Custom color
bg
is not added to the palette either.Expected behavior
theme.colorSchemes.dark.palette.background.default
should be '#0A0A0A'.bg
should be added to the palette.Context
No response
Your environment
I'm using react-scripts v5.0.1.
npx @mui/envinfo
Tested in Chrome v128 and Yandex Browser v24.
Search keywords: colorSchemes, palette, theme, createTheme
The text was updated successfully, but these errors were encountered: