What problem does it solve?
shadcn helps you consistently build shadcn/ui components correctly by enforcing spacing, composition, form patterns, semantic styling, and icon usage so you avoid subtle UI and accessibility mistakes.
Core Features & Use Cases
- Component composition rules: Ensures correct component structure for Cards, Tabs, Dialog/Sheet/Drawer titles, overlays, avatars, and separators.
- Form and validation patterns: Uses FieldGroup + Field, InputGroupInput/InputGroupTextarea, ToggleGroup for option sets, and data-invalid/aria-invalid for validation states.
- Styling and theming guardrails: Applies semantic color tokens, gap-* spacing, size-* sizing, truncate shorthand, cn() usage, and avoids manual dark overrides and z-index hacks.
- shadcn CLI workflow guidance: Advises on how to run shadcn CLI commands (info/search/docs/add/init), and when to refresh project context and fetch component docs before coding.
Quick Start
Provide your Next.js or other framework project context and ask the AI to create a shadcn/ui settings form using FieldGroup + Field with validated inputs and a ToggleGroup-based notification preference UI.