Replies: 1 comment 2 replies
-
Styles generated by Vanilla Extract are scoped via a unique classname identifier, rather than the method astro uses (which now involves attribute selectors rather than Are you trying to achieve this same output with Vanilla Extract styles? |
Beta Was this translation helpful? Give feedback.
2 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.
-
I use the
:where
scoping strategy, so all my component classes.foo
are compiled as.foo:where(.astro-<hash>)
.vanilla-extract styles are not scoped.
I can get the
<hash>
value programmatically, but then I have no idea how to pass it to vanilla-extract so that it generates scoped css.Is this something that would require
addFunctionSerializer
? Or maybe creating a new adapter?Beta Was this translation helpful? Give feedback.
All reactions