Replies: 1 comment
-
|
I for one, would love the ability to assign an entire However, I suspect we'd get into trouble producing "the correct output" if the e.g. one of the variants reuses a class from somewhere else, like so: |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
When authoring components with multiple elements across different cascade layers, I find the repetition tedious:
Each element requires its own
@layerdeclaration. In native CSS, you'd write the layer once and group all rules inside it—much more intuitive for component organization.What I'd love to see in Vanilla Extract:
This would return an object with class names (
{ root, child }) but let you organize everything in a single@layerdeclaration per layer—mirroring native CSS structure.style()is kept single-element focused?createStyles) be considered for VE, or is the intent to keep composition simpler?Do others feel this pain point, or is it just me?
Beta Was this translation helpful? Give feedback.
All reactions