shadcn-ui

Integrates and customizes shadcn/ui components in React applications using Tailwind CSS.

Updated Jun 22, 2026
One-click install
npx skills add https://github.com/aashahin/ai-skills --skill shadcn-ui-aashahin
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: shadcn-ui
Source: https://github.com/aashahin/ai-skills/tree/main/shadcn-ui
Command: npx skills add https://github.com/aashahin/ai-skills --skill shadcn-ui-aashahin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Setting up and integrating shadcn/ui components into React projects involves many manual steps: configuring Tailwind CSS, setting up path aliases, installing Radix UI or Base UI dependencies, and managing component variants. This Skill guides the entire workflow from project initialization to component customization, preventing common configuration errors. ## Core Features & Use Cases - Component Discovery & Installation: Browse the component catalog via shadcn MCP tools and install components with the CLI or manual integration. - Project Setup & Verification: Initialize components.json, configure Tailwind CSS variables, and validate the setup with the included verification script. - Theming & Customization: Customize CSS variables, create component variants with class-variance-authority, and build wrapper components without modifying ui/ files. - Use Case: Build a dashboard with a sortable data table by asking the agent to install the table, dropdown-menu, and button components, then compose them with TanStack Table following the included example patterns. ## Quick Start Ask the agent to set up shadcn/ui in your Next.js project and add a button component with a custom variant.

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 create components.json, then use npx shadcn@latest add followed by the component name. The CLI downloads the source into components/ui/, installs dependencies, and updates your configuration automatically.

How do I customize shadcn/ui component themes and colors?▼

Edit the HSL CSS variables in globals.css, such as --primary and --background, to change the theme globally. For component-level changes, add variants using class-variance-authority or create wrapper components outside components/ui/.

Does shadcn/ui support dark mode in Next.js?▼

Yes, shadcn/ui includes dark mode through CSS variables defined under the .dark class in globals.css. Combine it with next-themes and a ThemeProvider using attribute="class" to toggle between light and dark themes.

Why are my shadcn/ui styles not applying after installation?▼

Styles fail when globals.css is not imported in the root layout, Tailwind content paths exclude component files, or CSS variables are missing. Verify tailwind.config.js includes your source paths and that tailwindcss-animate is installed.

Can I migrate from Material-UI or Chakra UI to shadcn/ui?▼

Yes, migrate incrementally by installing shadcn/ui alongside your existing library and replacing components page by page. The migration guide maps MUI and Chakra components to shadcn/ui equivalents and covers theming and form handling differences.

What is the difference between Radix UI and Base UI in shadcn/ui?▼

Both are unstyled, accessible primitive libraries that shadcn/ui components build upon, sharing the same component API. You choose one during project creation, and the add command installs the correct dependencies for your selection.