shadcn-ui

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

Updated Jun 27, 2026
One-click install
npx skills add https://github.com/khulnasoft-bot/scalify --skill shadcn-ui-khulnasoft-bot
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: shadcn-ui
Source: https://github.com/khulnasoft-bot/scalify/tree/main/skills/plugins/stitch-build/skills/shadcn-ui
Command: npx skills add https://github.com/khulnasoft-bot/scalify --skill shadcn-ui-khulnasoft-bot

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 components, wiring Tailwind CSS variables, setting up path aliases, and customizing themes. This Skill guides the entire workflow so components are installed, configured, and customized correctly the first time. ## Core Features & Use Cases - Component Discovery & Installation: Browse the component catalog via shadcn MCP tools and install components with the shadcn CLI, including support for custom registries and UI blocks. - Project Setup & Verification: Initialize components.json, configure Tailwind CSS and import aliases, and validate the setup with the included verification script. - Theming & Customization: Apply CSS variable-based theming, dark mode, and class-variance-authority variants, with guidance for migrating from MUI, Chakra UI, Ant Design, or Bootstrap. - Use Case: Ask the agent to build a dashboard layout with sidebar navigation, and it will discover the right blocks, install the required components, and compose them following accessibility best practices. ## Quick Start Ask the agent to set up shadcn/ui in your Next.js project and add a login form with validation.

Frequently Asked Questions about shadcn-ui

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

FAQPage Schema
How do I set up shadcn/ui in a Next.js project?▼

Run npx shadcn@latest init in your project to create components.json, then add components with npx shadcn@latest add button. For new projects, npx shadcn@latest create walks you through framework, style, and component library choices interactively.

How to customize shadcn/ui component themes and colors?▼

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

Does shadcn/ui support dark mode?▼

Yes, shadcn/ui includes dark mode support through a .dark class with its own CSS variable definitions. In Next.js, combine it with next-themes and a ThemeProvider using attribute="class" to toggle between light and dark themes.

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

Yes, the migration guide maps components from MUI, Chakra UI, Ant Design, and Bootstrap to shadcn/ui equivalents. Incremental migration is recommended: install shadcn/ui alongside the existing library and replace components feature by feature.

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

Styles fail when globals.css is not imported in the root layout, Tailwind content paths exclude your files, or CSS variables are undefined. Verify tailwindcss-animate is installed and that tsconfig.json includes the @/* path alias.

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

Both are unstyled, accessible primitive libraries that shadcn/ui components can be built on. You choose one during project creation, and the shadcn add command automatically installs the correct dependencies for your selected library.