Skip to content

Commit 3bcd674

Browse files
authored
fix: proper body background color (#979)
1 parent 9cfcf72 commit 3bcd674

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/theme/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@ export const theme = extendTheme(vtheme, {
3636
useSystemColorMode: true,
3737
},
3838
styles: {
39-
global: {
39+
global: (props) => ({
4040
...editor,
4141
':root': {
4242
'--box-shadow': '0 0 10px #e3e3e3',
4343
'--box-shadow-dark-mode': '0 0 10px #101010',
4444
},
45+
body: {
46+
bg: props.colorMode === 'dark' ? 'bg.dark' : 'bg.light',
47+
},
4548
'.md-sizes': {
4649
'& :first-of-type': {
4750
mt: 0,
@@ -82,7 +85,7 @@ export const theme = extendTheme(vtheme, {
8285
whiteSpace: 'pre-wrap',
8386
},
8487
},
85-
},
88+
}),
8689
},
8790
components: {
8891
Accordion,

0 commit comments

Comments
 (0)