Replies: 1 comment 1 reply
-
Don't include daisyUI (and Tailwind) multiple times. You can use Tailwind and daisyUI in multiple CSS files and use those CSS files in different apps (for example one for the client site, the other for the admin dashboard) but don't include both CSS files in one site. If your monorepo is using another component library for some parts and you want to use daisyUI for some other parts, use daisyUI Let me know if you have any questions. |
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.
-
When using daisyUI in a Turborepo monorepo, if both the shared UI package (e.g. ui) and the app (e.g. web) import daisyUI, some component styles break or become inconsistent.
I suspect this is because daisyUI is being processed and included twice in the final CSS bundle, causing style conflicts.
https://turborepo.com/docs/guides/tools/tailwind
https://github.com/vercel/turborepo/tree/main/examples/with-tailwind.
I added daisyUI to this project
Beta Was this translation helpful? Give feedback.
All reactions