Problems using Panda for a Svelte component library #938
Replies: 2 comments 1 reply
-
I'm not a panda dev myself If you wanted to generate the css before hand so that the component library would just import the final css files.
From what I understand on how pandacss works
Since those functions css() / cva() are defined within the styled-system directory which isn't a package but an auto generated lump of code, they can't be called from outside of the package. I think that might work |
Beta Was this translation helpful? Give feedback.
-
Thinking about it that might work for straight css definitions |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm currently doing a POC svelte component library with panda CSS, where I use SvelteKit packaging system. I have some questions regarding how could I package pandaCSS so that the users of the component library were not forced to use panda.
I tried following the
static CSS file
part of the docs, but I think I found a bug. But even with that fixed, does it generate only one static file with all the styles? Is there a way of breaking them up?Or would it be better to include the generated code (styled-system) and ship it with the library? Are there any downsides?
I'm sorry if some of the questions are dumb, I'm just trying to figure out if panda CSS will work and that I'm making the correct choices. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions