Replies: 1 comment
-
|
Here is the best result I could achieve with style system generated by package: https://github.com/MrSquaare/panda-css-lab/tree/main/1-config-recipes This requires:
EDIT: I found a way to avoid using an alias system. (Note: I used a custom component factory because, for some reason, the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to know the best way to distribute a component library using Panda CSS.
I currently have a UI Kit project structured into two packages:
Both packages will be published on a npm registry.
The problem is the following: to use the library, a consumer will have to:
panda.config.ts'soutdirto be the relative path to the styled-system described in the @ui-kit/corepackage.json'sexportsnode_modules/@ui-kit/core/styled-systemIt's mainly the third point that bothers me:
My question: is there a better way to do this?
Thank you in advance for your advice!
Beta Was this translation helpful? Give feedback.
All reactions