This repository was archived by the owner on Apr 25, 2026. It is now read-only.
Is it possible to use globalCss with variables? #996
Answered
by
mattp0123
igortullio
asked this question in
Help
|
Like this: const globalStyles = globalCss({
'*': {
margin: 0,
padding: 0,
boxSizing: 'border-box',
},
body: {
background: '$primary',
color: '$text',
}
});I want to use it to change the background based on the theme (light or dark). |
Answered by
mattp0123
Apr 11, 2022
Replies: 1 comment
|
I can do this: |
0 replies
Answer selected by
igortullio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can do this: