shadcn-ui

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

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Ayoub-ouederni/SENTINEL --skill shadcn-ui-ayoub-ouederni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn-ui
Source: https://github.com/Ayoub-ouederni/SENTINEL/tree/main/.claude/skills/shadcn-ui
Command: npx skills add https://github.com/Ayoub-ouederni/SENTINEL --skill shadcn-ui-ayoub-ouederni

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, 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 path aliases, and validate the setup with the included verification script. - Theming & Customization: Customize CSS variables, build component variants with class-variance-authority, set up dark mode, and migrate from libraries like 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 Set up shadcn/ui in my 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 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 the source 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 overrides go in the .dark selector, and component-level variants use class-variance-authority in the component file.

Does shadcn/ui work with Vite or only Next.js?

shadcn/ui works with Vite, Next.js, and other React frameworks. For Vite, configure the @ path alias in vite.config.ts and set rsc to false in components.json since server components are Next.js-specific.

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

shadcn/ui copies component source into your project for full ownership and customization, while MUI is a versioned npm dependency. Choose shadcn/ui when you want Tailwind-based styling and no version lock-in; the migration guide maps MUI components to shadcn equivalents.

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 tailwind.config.js content paths and that @tailwind directives exist in your global stylesheet.

Can I modify shadcn/ui components directly?

You can since the code lives in your project, but the recommended practice is creating wrapper components outside components/ui/ instead. This keeps base components pristine so CLI updates and diffs remain manageable.