Working with shared components and config in a monorepo? #17449
Unanswered
leo-petrucci
asked this question in
Help
Replies: 1 comment 1 reply
-
In the shared |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
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