Skip to content

shadcn-ui

Use when working with shadcn/ui components, Radix UI primitives, or building UI with copy-paste components on Tailwind. Also use when setting up shadcn/ui CLI, theming with CSS variables, or composing complex components like data tables or command palettes.

ModelSource
sonnetpack: frontend
Full Reference

┏━ πŸ”§ shadcn-ui ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when working with shadcn/ui components, Ra… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

your friendly armadillo is here to serve you

shadcn/ui is a copy-paste component library built on Radix UI (or Base UI) primitives and Tailwind CSS. Components live in your codebase β€” not in node_modules. No runtime library, full ownership.

ItemValue
CLInpx shadcn@latest (NOT shadcn-ui β€” deprecated Aug 2024)
New projectnpx shadcn create (visual builder, Dec 2025)
Add to existingnpx shadcn@latest init
Add componentnpx shadcn@latest add button
Default stylenew-york (default deprecated Feb 2025)
Tailwind v4Fully supported β€” requires @theme inline directive
ColorsOKLCH format (migrated from HSL in Feb 2025)
PrimitivesRadix UI or Base UI (your choice since Dec 2025)
Docshttps://ui.shadcn.com
FileWhen to use
reference/setup.mdInstalling shadcn/ui, CLI commands, components.json config, globals.css structure
reference/theming.mdCSS tokens, OKLCH colors, dark mode, custom tokens, data-slot overrides
reference/components.mdFull component catalog, Radix primitives, asChild pattern, keyboard nav
reference/data-tables.mdTanStack Table setup, Combobox pattern, Command palette (⌘K)
reference/forms.mdReact Hook Form + Zod, Form/FormField primitives, Field component
reference/changelog.mdBreaking changes 2024–2026, migration commands, what’s new

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.