Unable to set default color mode
See original GitHub issue🐛 Bug report
Unable to force color mode to dark using theme.
💥 Steps to reproduce
- Open this codesandbox
- See that the components are in light mode. Expected them to be in dark mode due to configuration of
ColorModeScript
andextendTheme
💻 Link to reproduction
🧐 Expected behavior
Expect components to be in dark mode
🧭 Possible Solution
Not sure.
🌍 System information
Software | Version(s) |
---|---|
Chakra UI | 1.0.3 |
Browser | Chrome Latest (Chromium: 87.0.4280.101) |
Operating System | Linux x64 |
📝 Additional information
None
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Not able to change default app mode (Settings
Hello, Try these steps: 1. Press Windows + R and put regedit in Run dialog box to open Registry Editor. ... 3. At...
Read more >Photoshop 2022: Can't change default color profile for new ...
I want to change this to ensure that sRGB is default. Before you ask, I have changed the working space to sRGB. Here's...
Read more >how to set default color mode in indesign?
For a Print document, the default is CMYK which is appropriate. For Web or Mobile document which is to be viewed on-screen, the...
Read more >How to restore default Display Color settings in Windows 10
Your browser can't play this video. ... 1] Set Colour Management Settings to Default 2] Set Graphics Properties to Default 3] Use NVIDIA ......
Read more >Windows 10: How to change default app mode to dark theme ...
SUBSCRIBE for more: https://www.youtube.com/c/SOiSKen?sub_confirmation=1i How to change default app mode to dark theme color in Windows 10 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In your sandbox youre not nesting the
config
property, but just addinguseSystemColorMode
etc to the top level, which doesn’t work.Nesting it within
config
works as expected.Can you share a link to the incorrect example? At https://chakra-ui.com/docs/features/color-mode is a valid example listed:
The
extendTheme
function allows adding properties to the theme. It extends the theme - so every property in the default theme should be present plus any additional values you want.