Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind CSS, or implementing UI patterns like buttons, dialogs, dropdowns, tables, and complex form layouts.
Use this skill to implement production-ready shadcn/ui interfaces with strong accessibility, predictable theming, and reusable component patterns.
npx shadcn@latest init.npx shadcn@latest add <component>.@/components/ui/* and compose using Tailwind utility classes.@/*) before using generated imports."use client" for interactive components in Next.js App Router.# New app
npx create-next-app@latest my-app --typescript --tailwind --eslint --app
cd my-app
npx shadcn@latest init
npx shadcn@latest add button input form card dialog select
# Existing app
npm install tailwindcss-animate class-variance-authority clsx tailwind-merge lucide-react
npx shadcn@latest init
Read supporting files based on task scope:
references/SETUP_AND_CONFIGURATION.md
references/COMPONENT_PATTERNS.md
references/NEXTJS_INTEGRATION.md
references/EXAMPLES_AND_RECIPES.md
references/CLI_ADVANCED.md
references/REGISTRY_SETUP.md
When you have a specific UI pattern in mind, use these guides:
references/COMPONENT_PATTERNS.md (inputs, forms, buttons) → then references/EXAMPLES_AND_RECIPES.md for complete form examplesreferences/COMPONENT_PATTERNS.md (table section) → references/EXAMPLES_AND_RECIPES.md for table patternsreferences/COMPONENT_PATTERNS.md (navigation section) → examplesreferences/COMPONENT_PATTERNS.md (dialogs) → examplesreferences/SETUP_AND_CONFIGURATION.md (CSS variables) → references/NEXTJS_INTEGRATION.md if using Next.jsreferences/CLI_ADVANCED.md or references/REGISTRY_SETUP.md@/components/ui.