Skip to content

Commit

Permalink
feat: tokenize body (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrtsky committed Mar 31, 2023
1 parent a55b07f commit 1e99aa0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 3 additions & 8 deletions assets/css/main.css
Expand Up @@ -54,15 +54,10 @@ body {
overflow-y: scroll;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background: $dt('color.white');
color: $dt('color.gray.800');
font-family: $dt('font.sans');
background-color: $dt('docus.body.backgroundColor');
color: $dt('docus.body.color');
font-family: $dt('docus.body.fontFamily');
min-width: $dt('size.xs');

@dark {
background: $dt('color.black');
color: $dt('color.gray.200');
}
}

.docus-scrollbars {
Expand Down
11 changes: 11 additions & 0 deletions tokens.config.ts
Expand Up @@ -84,6 +84,17 @@ export default defineTheme({
'@studioIcon material-symbols:docs'
]
},
body: {
backgroundColor: {
initial: '{color.white}',
dark: '{color.black}'
},
color: {
initial: '{color.gray.800}',
dark: '{color.gray.200}'
},
fontFamily: '{font.sans}',
},
header: { height: '64px' },
footer: { height: { initial: '145px', sm: '100px' }, padding: '{space.4} 0' },
readableLine: '78ch',
Expand Down

0 comments on commit 1e99aa0

Please sign in to comment.