Using atoms in Global Styles #109
Answered
by
mattcompiles
douglaseggleton
asked this question in
Q&A
-
Is it possible to use atoms in global styles? :-) import { style, globalStyle } from "@vanilla-extract/css";
import { atoms } from "../../atoms.css";
// atoms({
// background: 'canvas',
// })
globalStyle(`body`, {
background: 'canvas', // How can I use the atom here?
}); |
Beta Was this translation helpful? Give feedback.
Answered by
mattcompiles
May 12, 2021
Replies: 1 comment 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mattcompiles
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
atoms
function produced by Sprinkles is an abstraction on top of thestyle
function from@vanilla-extract/css
. You can't modify the behaviour of thestyle
orglobalStyle
function.