TLDR; how can I use @layer with createTheme? #1472
Unanswered
olivierpascal
asked this question in
Q&A
Replies: 1 comment 9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TLDR; how can I use @layer with
createTheme
?Hello, I am using vanilla extract and sprinkles, and I really appreciate both.
When we use sprinkles, we usually want that sprinkles styles have a higher priority than base styles. So we use CSS layers, which is well supported by
style()
anddefineProperties()
.Problems start when we use theme vars inside sprinkles.
createTheme()
does not support layer. So theme vars always have a higher priority than any layer.What I would like is being able to provide a CSS layer to
createTheme()
so that the CSS class is created inside that layer.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions