We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ecabb6 + 51eb166 commit 98e1e86Copy full SHA for 98e1e86
src/@chakra-ui/theme.ts
@@ -7,7 +7,15 @@ import semanticTokens from "./semanticTokens"
7
const config: ThemeConfig = {
8
cssVarPrefix: "eth",
9
initialColorMode: "system",
10
- useSystemColorMode: true,
+ /**
11
+ * Disable Chakra's system color subscription, as it works differently from
12
+ * `next-themes` and causes a desync with it.
13
+ *
14
+ * Chakra will always change the color mode based on the system preference.
15
+ * While `next-themes` will only change to the system preference if the user
16
+ * has `system` as their active theme.
17
+ */
18
+ useSystemColorMode: false,
19
}
20
21
/**
0 commit comments