shadcn-ui

Installation
SKILL.md

shadcn/ui

Overview

Guides building accessible, customizable UI with shadcn/ui as a code generation platform (not an npm dependency). Components are copied into your project via the CLI and fully owned. Supports Radix UI or Base UI primitives, Tailwind CSS 4 with oklch color tokens, React 19 direct ref patterns, and type-safe form validation with the Field component and Zod.

When to use: Adding shadcn/ui components, theming with CSS variables and oklch colors, building forms with React Hook Form or TanStack Form, creating custom registries, composing accessible component variants, setting up dark mode.

When NOT to use: Non-React frameworks (use shadcn-vue or shadcn-svelte instead), projects using a different component library (MUI, Chakra), projects not using Tailwind CSS.

Quick Reference

Pattern API / Approach Key Points
Init project npx shadcn@latest init Auto-detects framework, configures CSS variables
Add component npx shadcn@latest add [name] Copies source code into your project
Custom project npx shadcn@latest create Pick library (Radix/Base UI), style, theme, fonts
Check updates npx shadcn@latest diff [component] Shows upstream changes for your components
Search registry npx shadcn@latest search @registry Browse and install from namespaced registries
Related skills
Installs
56
GitHub Stars
11
First Seen
Feb 20, 2026