All posts

Sharing shadcn/ui across a monorepo

Oct 7, 2026 · Ada

uimonorepo

Both the app and the UI package have a components.json. Running the shadcn CLI from the app places components in packages/ui:

cd apps/web
pnpm --dir ../../packages/ui exec shadcn add dialog -c .

Tailwind CSS v4 scans the apps directory from the shared globals.css, so classes used in the app are generated too.