Skip to content

Commit

Permalink
Merge pull request #13676 from ethereum/fix-color-theme-sync
Browse files Browse the repository at this point in the history
Fix color themes sync
  • Loading branch information
wackerow authored Sep 6, 2024
2 parents 0ecabb6 + 51eb166 commit 98e1e86
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/@chakra-ui/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ import semanticTokens from "./semanticTokens"
const config: ThemeConfig = {
cssVarPrefix: "eth",
initialColorMode: "system",
useSystemColorMode: true,
/**
* Disable Chakra's system color subscription, as it works differently from
* `next-themes` and causes a desync with it.
*
* Chakra will always change the color mode based on the system preference.
* While `next-themes` will only change to the system preference if the user
* has `system` as their active theme.
*/
useSystemColorMode: false,
}

/**
Expand Down

0 comments on commit 98e1e86

Please sign in to comment.