8000 feat: tokenize body (#875) · nuxt-themes/docus@1e99aa0 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 1e99aa0

Browse files
authored
feat: tokenize body (#875)
1 parent a55b07f commit 1e99aa0

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

assets/css/main.css

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,10 @@ body {
5454
overflow-y: scroll;
5555
-webkit-font-smoothing: antialiased;
5656
-moz-osx-font-smoothing: grayscale;
57-
background: $dt('color.white');
58-
color: $dt('color.gray.800');
59-
font-family: $dt('font.sans');
57+
background-color: $dt('docus.body.backgroundColor');
58+
color: $dt('docus.body.color');
59+
font-family: $dt('docus.body.fontFamily');
6060
min-width: $dt('size.xs');
61-
62-
@dark {
63-
background: $dt('color.black');
64-
color: $dt('color.gray.200');
65-
}
6661
}
6762

6863
.docus-scrollbars {

tokens.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,17 @@ export default defineTheme({
8484
'@studioIcon material-symbols:docs'
8585
]
8686
},
87+
body: {
88+
backgroundColor: {
89+
initial: '{color.white}',
90+
dark: '{color.black}'
91+
},
92+
color: {
93+
initial: '{color.gray.800}',
94+
dark: '{color.gray.200}'
95+
},
96+
fontFamily: '{font.sans}',
97+
},
8798
header: { height: '64px' },
8899
footer: { height: { initial: '145px', sm: '100px' }, padding: '{space.4} 0' },
89100
readableLine: '78ch',

0 commit comments

Comments
 (0)
0