What problem does it solve?
shadcn helps you reliably build, update, and compose shadcn/ui components without breaking the project’s established composition, styling, and accessibility conventions.
Core Features & Use Cases
- Component discovery and docs: Search and open official component documentation and examples before implementing UI.
- Safe installs, updates, and diffs: Add or update components using the shadcn CLI with dry-runs and file diffs to avoid unintended changes.
- Correct usage guidance: Apply project-wide rules for form layout, spacing, semantic colors, icons, and composition patterns (e.g., FieldGroup/Field, ToggleGroup, Dialog titles, Badge/Skeleton/Separator).
- Preset and theming workflows: Apply presets or switch themes while preserving or merging existing component customizations.
- Project-context-aware advice: Uses injected
components.json context (base vs radix, Tailwind version, icon library, aliases) to recommend correct APIs.
Quick Start
Use the shadcn skill to add or update a UI component by asking: "Install the shadcn/ui Button component and show me the exact file changes first."