Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tokenize body #875

Merged
merged 1 commit into from Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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