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). |
Beta Was this translation helpful? Give feedback.
Answered by
mattp0123
Apr 11, 2022
Replies: 1 comment
-
I can do this:
|
Beta Was this translation helpful? Give feedback.
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: