Skip to content

Commit 117e821

Browse files
committed
feat(body): fix body tokens ; align with Docus
1 parent c3e102e commit 117e821

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

assets/main.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
html {
2-
background-color: $dt('color.gray.100');
3-
}
4-
5-
html.dark {
6-
background-color: $dt('color.gray.900');
1+
body {
2+
background-color: $dt('alpine.body.backgroundColor');
3+
color: $dt('alpine.body.color');
74
}
85

96
/* Color scheme images helper classes */

tokens.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ export default defineTheme({
99
'@studio-icon carbon:blog'
1010
]
1111
},
12+
body: {
13+
backgroundColor: {
14+
initial: '{color.white}',
15+
dark: '{color.black}'
16+
},
17+
color: {
18+
initial: '{color.gray.800}',
19+
dark: '{color.gray.200}'
20+
}
21+
},
1222
backdrop: {
1323
backgroundColor: {
1424
initial: '#f4f4f5b3', // TODO: rgba({color.gray.100}, 0.7)

0 commit comments

Comments
 (0)