Shadcn UI CLI

Add components through the UI package's current shadcn configuration.

Run shadcn commands from packages/ui.

cd packages/ui
pnpm dlx shadcn@latest add <component-name>

Current Config

The repo uses packages/ui/components.json with:

  • CSS file: ../../apps/web/styles/globals.css
  • components alias: @components
  • ui alias: @components
  • hooks alias: @hooks
  • utils alias: #utils
  • lib alias: #lib

After generating a component, review imports and align them with the package's existing alias style if the CLI produces stale paths.

Importing

After adding and exporting a component, consume it through @kit/ui/....