Replies: 1 comment 1 reply
-
export const colorVars = createGlobalTheme(':root', {
white: '255, 255, 255',
})
export const functionalColorVars = createGlobalTheme(':root', {
background: `rgb(${colorVars.white})`,
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ksesong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to port an existing stylesheet into
vanilla-extract
, which uses a previously defined variable to define itself, something like:How can I achieve this with
vanilla-extract
? I guess the option ofglobalStyle
is still possible, but I wonder whether there is a better solution.Beta Was this translation helpful? Give feedback.
All reactions