ShadCN UI styles not working in Nx Monorepo with Tailwind v4 and Next.js 15 #7827
Closed
Rishavraaj
started this conversation in
General
Replies: 0 comments
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.
-
❓ ShadCN UI styles not working in Nx Monorepo with Tailwind v4 and Next.js 15
Hey folks, I'm using ShadCN UI in an Nx monorepo setup with:
I'm running into an issue where ShadCN UI components are rendering without styles.
I have placed the
components
andstyles
inside a sharedlibs/ui
folder, and I'm importing components like this:However, the styles from
ui/styles.css
are not being applied in the consuming app.What I’ve tried:
libs/ui
project.💡 Question
Has anyone successfully used ShadCN UI with Nx + Tailwind v4 + Next.js 15?
Is there a recommended way to structure shared UI libraries so styles are correctly applied?
Any advice or working examples would be super helpful 🙏
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions