ColorMode ignoring config set in code and following the setting on other Chakra sites. #8246
Open
1 of 3 tasks
Labels
Topic: Color Mode 🌓
Issue or PR related to color mode
Description
I'm building a webapp but only making use of the "light" colour mode. The problem is that even when setting the "light" mode using the code below:
const extendedTheme = extendTheme({ ...theme, config: { initialColorMode: "light", useSystemColorMode: false, }, });
The colour mode is reverts back to whatever colour mode has been picked on other Chakra UI sites that I've visited due to the shared local state for the color mode.
Link to Reproduction
https://codesandbox.io/p/sandbox/relaxed-jennings-gg58sr?file=%2Fsrc%2Findex.tsx%3A24%2C11
Steps to reproduce
Chakra UI Version
2.8.2
Browser
Microsoft Edge
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: