Replies: 2 comments 1 reply
-
You can definitely do this, you just have to decide where you want to do the compilation. You can either make it a requirement of your consumers to run the vanilla-extract plugin of their choice. Or you can pre-compile at the library level to CSS files and expect that your consumers can compile |
Beta Was this translation helpful? Give feedback.
1 reply
-
Sorry for this thread! I should've read through the discussions. |
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.
-
I've read through the docs and examples but haven't seen anything related to external library support. Here's an example of what I mean:
For the sake of brevity, let's assume that I've setup a
sprinkles.css.ts
in an external package with the following properties:I have an external application that depends on the above
@my-lib/styles
package.Is there a way to make this work as expected? Ideally, I'd like to define reusable "sprinkles" exports for use in separate projects. I'm aware of packages like https://github.com/TheMightyPenguin/dessert-box, but these seem to be react-specific. Ideally, this solution should work in non-react libraries as well.
Nice work btw. I love what I've seen so far.
Beta Was this translation helpful? Give feedback.
All reactions