Working with shared components and config in a monorepo? #17449
Unanswered
leo-petrucci
asked this question in
Help
Replies: 1 comment 2 replies
-
In the shared |
Beta Was this translation helpful? Give feedback.
2 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 have several monorepos that use Tailwind v3. All these usually have a shared component library that each app imports from as well as a shared Tailwind configuration. The setup looks a bit like this:
My shared config looks like this:
How can I replicate this in v4?
I tried something like this:
Where the shared
tailwind.css
contains all the Shadcn configuration:And then importing this from my
main.tsx
But it doesn't seem to work.
Any ideas? Used to be really easy with import/export but feels like black magic now that it's all CSS.
I'd even just take a way to share my custom ShadCN variables to be honest, so I don't have to copy and paste them in every app.
Beta Was this translation helpful? Give feedback.
All reactions