Demo, all content is generated
Question
Tailwind v4 classes from my packages/ui folder don't apply in the Next app
Monorepo (pnpm workspaces): apps/web is Next.js, packages/ui has shared components. Components from packages/ui render, but a bunch of their classes have no effect, for example bg-primary and rounded-xl work but grid-cols-[1fr_2fr] and data-[state=open]:rotate-180 don't. Classes that I also use somewhere in apps/web work, the ones only used in packages/ui don't.
Using Tailwind v4, no tailwind.config file.
What I’ve tried
Asked Cursor to add a tailwind.config with a content array pointing at packages/ui (seems to be ignored in v4?), restarted dev server, cleared .next.
Same here with a turborepo setup. Following. lotte_j · edited
Activity
20 helpers notified