shadcn-ui

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

1|Updated Jun 27, 2026
One-click install
npx skills add https://github.com/tranhoainam298/qr-parking-booking-system --skill shadcn-ui-tranhoainam298
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: shadcn-ui
Source: https://github.com/tranhoainam298/qr-parking-booking-system/tree/main/.claude/plugins/stitch-build/skills/shadcn-ui
Command: npx skills add https://github.com/tranhoainam298/qr-parking-booking-system --skill shadcn-ui-tranhoainam298

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Integrating shadcn/ui components into React projects involves many manual steps: initializing configuration, installing dependencies, setting up path aliases, theming with CSS variables, and maintaining accessibility. This Skill guides the entire workflow so components are installed, customized, and validated correctly. ## Core Features & Use Cases - Component Discovery & Installation: Browse the component catalog via shadcn MCP tools and install components with the shadcn CLI into your project. - Theming & Customization: Customize colors, dark mode, variants with class-variance-authority, and build wrapper components without modifying core files. - Migration Support: Migrate from Material-UI, Chakra UI, Ant Design, or Bootstrap with component mapping tables and code examples. - Use Case: You need a dashboard with a sortable data table and an authentication form. The Skill retrieves the table, form, and card components, wires them with TanStack Table and react-hook-form, and validates the setup with the included verification script. ## Quick Start Ask the assistant to set up shadcn/ui in your React project and add a button and card component with a custom theme.

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

How do I customize shadcn/ui theme colors?▼

Edit the HSL CSS variables in globals.css, such as --primary and --background, to match your brand colors. Dark mode variants are defined under the .dark class, and border radius is controlled by the --radius variable.

Does shadcn/ui work with Vite and Next.js?▼

Yes, shadcn/ui supports both Vite and Next.js. For Next.js App Router set rsc to true in components.json, and for Vite configure the @ path alias in vite.config.ts so component imports resolve correctly.

shadcn/ui vs Material-UI: which should I use?▼

shadcn/ui copies component source code into your project, giving full ownership and customization with Tailwind CSS, while Material-UI is a versioned npm package with a built-in theme system. Choose shadcn/ui when you want to modify component internals without library lock-in.

Why are shadcn/ui styles not applying in my project?▼

Styles fail when globals.css is not imported in the app entry point, Tailwind content paths exclude your files, or CSS variables are undefined. Verify tailwind.config.js content paths and confirm the tailwindcss-animate plugin is installed.

Can I modify shadcn/ui components directly?▼

Yes, since components live in your codebase you can edit them, but the recommended practice is creating wrapper components outside components/ui/ to preserve upgradability. Use the cn() utility and class-variance-authority variants for safe customization.