Skip to content

Commit 697fc7e

Browse files
authored
Merge pull request #11595 from ethereum/site-background-color
Fix flashing color mode issue
2 parents 3b9baef + 617be80 commit 697fc7e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/@chakra-ui/gatsby-plugin/styles.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { mode } from "@chakra-ui/theme-tools"
2-
31
const styles = {
4-
global: (props) => ({
2+
global: {
53
/**
64
* THESE ARE OLD GLOBAL STYLES - carried over from old css files
75
*
@@ -12,9 +10,7 @@ const styles = {
1210
* don't need the global styles anymore
1311
*/
1412
body: {
15-
// TODO: when we have Chakra v2, this should be done by overriding the
16-
// native Chakra semantic tokens
17-
bg: mode("white", "gray.800")(props),
13+
bg: "background.base",
1814
lineHeight: "base",
1915
fontSize: "md",
2016
},
@@ -83,7 +79,7 @@ const styles = {
8379
lineHeight: "base",
8480
fontFamily: "monospace",
8581
},
86-
}),
82+
},
8783
}
8884

8985
export default styles

0 commit comments

Comments
 (0)