TheMightyPenguin / dessert-box

An utility to create a Box component from your vanilla-extract + sprinkles tokens.
MIT License
343 stars 20 forks source link

Update package.json #31

Closed brandonpittman closed 1 year ago

brandonpittman commented 1 year ago

To export styledRuntime

TheMightyPenguin commented 1 year ago

@brandonpittman what setup are you using, and how are you using styled? I tried the current version (0.7.3) with both NextJS and Vite and it works there

TheMightyPenguin commented 1 year ago

@brandonpittman I did a similar change as I inspected how other libraries are doing and published 0.7.5, I created a codesandbox with that version and it is working, using styled https://codesandbox.io/p/sandbox/dessert-box-latest-qub7gw?file=%2Fsrc%2FApp.tsx%3A21%2C7

Let me know if this version also works for you!

brandonpittman commented 1 year ago

@brandonpittman what setup are you using, and how are you using styled? I tried the current version (0.7.3) with both NextJS and Vite and it works there

I'm using Remix (which I think will get a lot more Vanilla Extract users now that Mark Dalgleish is working for them).

But 0.7.5 works though, so all is well. The styled function will be great for purely presentational components. Going to create a helper called atomized that only takes atoms to go with it.