Replies: 1 comment 1 reply
-
hey, we plan to revisit this part of the documentation I wrote a tiny bit on this topic here https://www.astahmer.dev/posts/why-would-i-choose-panda-css#component-library |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
To preface this, I have a monorepo setup with Yarn Workspaces and Turborepo.
What I'm using:
The folder structure looks something like this:
I want
web
to consumecomponent-lib
, where component-lib contains shared components, Panda tokens, and global styles.I have been following the "Include src files" part of this guide. I can't get it to work though and I get a blank white page when running my app.
In
component-lib
, this is how the panda config looks like:And this is what it looks like in
web
:My exports in package.json file for component lib looks like so:
What I'm trying to achieve is that the
component-lib
becomes the source of truth for everything styling, andweb
simply consumes it. This would include global styles which I set up in the component-lib. I don't know what I'm missing to get this to work. The instructions in this guide: https://panda-css.com/docs/guides/component-library#include-the-src-files -- make no mention of CSS files, so I'm unsure how to wire things up exactly.Any pointers on how to get this to work would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions