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.
1 parent 9cfcf72 commit 3bcd674Copy full SHA for 3bcd674
src/theme/index.ts
@@ -36,12 +36,15 @@ export const theme = extendTheme(vtheme, {
36
useSystemColorMode: true,
37
},
38
styles: {
39
- global: {
+ global: (props) => ({
40
...editor,
41
':root': {
42
'--box-shadow': '0 0 10px #e3e3e3',
43
'--box-shadow-dark-mode': '0 0 10px #101010',
44
45
+ body: {
46
+ bg: props.colorMode === 'dark' ? 'bg.dark' : 'bg.light',
47
+ },
48
'.md-sizes': {
49
'& :first-of-type': {
50
mt: 0,
@@ -82,7 +85,7 @@ export const theme = extendTheme(vtheme, {
82
85
whiteSpace: 'pre-wrap',
83
86
84
87
- },
88
+ }),
89
90
components: {
91
Accordion,
0 commit comments