Skip to content

Commit

Permalink
feat(body): fix body tokens ; align with Docus
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed May 10, 2023
1 parent c3e102e commit 117e821
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 3 additions & 6 deletions assets/main.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
html {
background-color: $dt('color.gray.100');
}

html.dark {
background-color: $dt('color.gray.900');
body {
background-color: $dt('alpine.body.backgroundColor');
color: $dt('alpine.body.color');
}

/* Color scheme images helper classes */
Expand Down
10 changes: 10 additions & 0 deletions tokens.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ export default defineTheme({
'@studio-icon carbon:blog'
]
},
body: {
backgroundColor: {
initial: '{color.white}',
dark: '{color.black}'
},
color: {
initial: '{color.gray.800}',
dark: '{color.gray.200}'
}
},
backdrop: {
backgroundColor: {
initial: '#f4f4f5b3', // TODO: rgba({color.gray.100}, 0.7)
Expand Down

0 comments on commit 117e821

Please sign in to comment.