shadcn/ui — registry and CLI mental map
How the component registry, CLI, and apps package fit together for copy-paste UI components.
Questions
Plain-language prompts grounded in this codebase. Open any question for a full answer page.
- ClozeL1
shadcn/ui distributes components via a registry that the CLI pulls into your repo.
- ClozeL1
Project paths and style options for the CLI are stored in components.json.
- ClozeL1
Accessible behavior for many shadcn components is built on Radix UI primitives.
- ClozeL1
Class merging is usually done with a cn helper built on clsx and tailwind-merge.
- ClozeL1
Theme colors are typically CSS variables defined in globals.css (or equivalent).
- ClozeL1
The shadcn/ui monorepo includes docs and playground apps under apps.
- ClozeL1
To customize a Button after adding it, edit the file under your components/ui folder.