Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
94 replies
niels

Monorepo UI package has no styling when imported

I have a monorepo (turborepo) with a Next.js app and a UI package. In this UI package I have a Shadcn UI button component. I export this button using an index.tsx file. When importing this button in the Next.js app, all properties and interaction are fine, but all styling is missing. Any ideas?

Postcss config and Tailwind config are imported/used as preset from the @repo/ui package.

@repo/ui has autoprefixer, postcss and tailwind as devDependencies. My Next.js app only installs @repo/ui
image.png
image.png
image.png
image.png
Was this page helpful?