shadcn-ui

Implements accessible React UI components with shadcn/ui, Radix UI, and Tailwind CSS.

2|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/SkinnnyJay/simpill-utils --skill shadcn-ui-skinnnyjay
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: shadcn-ui
Source: https://github.com/SkinnnyJay/simpill-utils/tree/main/.agents/skills/shadcn-ui
Command: npx skills add https://github.com/SkinnnyJay/simpill-utils --skill shadcn-ui-skinnnyjay

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up and building accessible React interfaces with shadcn/ui involves many moving parts: CLI initialization, Tailwind configuration, CSS variable theming, Radix UI primitives, and form validation wiring. This Skill consolidates installation commands, configuration files, and copy-ready component patterns so you avoid piecing together scattered documentation. ## Core Features & Use Cases - Installation & Configuration: Step-by-step setup for Next.js, Vite, Remix, and TanStack Start, including tailwind.config, tsconfig paths, and CSS variables for light/dark themes. - Component Patterns: Ready-to-use implementations for Button, Input, Card, Dialog, Sheet, Select, Menubar, Table, Toast, and forms built with React Hook Form and Zod validation. - Customization & Theming: Guidance on extending components with class-variance-authority variants, custom themes via CSS variables, and registry configuration for private component distribution. - Use Case: Build a settings page by installing card, sheet, select, and switch components, wire a validated profile form with Zod schemas, and show toast notifications on submission. ## Quick Start Ask the AI to set up shadcn/ui in a Next.js project and build a validated contact form using the Form, Input, and Button components.

Frequently Asked Questions about shadcn-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install shadcn/ui components in a React project?▼

Run npx shadcn@latest init to configure your project, then add components with npx shadcn@latest add button input form. The CLI copies component source into your components/ui directory and installs required Radix UI dependencies.

How to build forms with shadcn/ui and Zod validation?▼

Install the form component with npx shadcn@latest add form, which adds React Hook Form and Zod. Define a Zod schema, create the form with useForm and zodResolver, then render FormField wrappers around Input components for validation messages.

Does shadcn/ui work with Next.js App Router and Server Components?▼

Yes, but interactive components need the "use client" directive since they rely on React state and event handlers. For Server Components, wrap interactive elements like Button in a small client component wrapper.

How do I customize shadcn/ui theme colors and dark mode?▼

Edit the CSS variables in globals.css for both :root and .dark selectors, using HSL values for background, primary, and accent colors. Tailwind config maps these variables to utility classes, and dark mode toggles via the class strategy.

What is the difference between shadcn/ui and traditional component libraries?▼

shadcn/ui is not an npm package; it copies component source code directly into your project so you own and modify it freely. It builds on Radix UI primitives for accessibility and Tailwind CSS for styling rather than shipping precompiled components.

Why does shadcn/ui init fail with React 19 peer dependency errors?▼

React 19 causes peer dependency conflicts with some packages during npm installs. The CLI prompts you to resolve this by choosing either the --force or --legacy-peer-deps installation strategy.