Documentation for useSystemColorMode?
See original GitHub issueFeature request
I can see useSystemColorMode
is set to false
on this page on the documentation but i don’t see any explanation about what that actually do?
Is your feature request related to a problem? Please describe.
It’s more of a documentation / explanation request than a feature request?
Describe the solution you’d like
Some comment/explanation about that flag on the documentation?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Color Mode - Chakra UI
The theme config for color mode has 2 options: initialColorMode : The initial mode you'd like your app to start with; useSystemColorMode :...
Read more >Color Mode - Chakra UI
useColorModeValue is a React hook used to change any value or style based on the color mode. It takes 2 arguments: the value...
Read more >How to fix "TypeError: Cannot read properties of undefined ...
Whenever I start the project it gives me the error, "TypeError: Cannot read properties of undefined (reading 'useSystemColorMode')". I didn't ...
Read more >Color mode (Dark Mode) - NativeBase
useColorModeValue is a React hook used to change any value or style based on the color mode. It takes 2 arguments: the value...
Read more >Theme - Refine Dev
Refer to the Chakra UI documentation for more information about theme. → ... useSystemColorMode: false,
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
Thank you for pointing that out!
I don’t think a) and b) were clear, all the examples on the website only show it set to
false
and there is not real explanation of what happens if you turn it to true?Perhaps a section named “Using System Color Mode” could be added?
Also, i would guess most end-users would only want to use the System Color while the user has not toggled the theme, once the user toggles and it’s saved on localStorag / cookies, then system color mode should not take priority over the user preferences? As in: i would guess the system colour would only be used as a “first guess colour before the user decides”?
Perhaps to make this a little bit more customiseable the system color code could be exposed as a hook or function under
theme-tools
?Hi! This issue hasn’t seen any activity recently. We close inactive issues after 35 days to manage the volume of issues we receive. If we missed this issue or you want to keep it open, please reply here. That will reset the timer and allow more time for this issue to be addressed before it is closed.