shadcn-ui
Installation
SKILL.md
shadcn/ui
Overview
shadcn/ui is a collection of accessible, customizable React components built on Radix UI and Tailwind CSS. Components are copied into your project (no npm package); you own and edit the code. Works with Next.js (App Router), Vite, and other React frameworks.
Principles: Open code (AI-ready), composable API, beautiful defaults, distribution via CLI and schema. Requires Tailwind v4 and path alias @/*. We do not use tailwind.config.js; theme and setup are CSS-only (@import "tailwindcss" + @theme).
Prerequisites
- Tailwind v4:
@import "tailwindcss"in main CSS;@tailwindcss/viteor@tailwindcss/postcss. Notailwind.config.js. See the tailwind-css skill. - Path alias
@/*→./src/*(or your source root) intsconfigand in the bundler (e.g. Viteresolve.alias). - React (Next.js App Router, Vite, etc.).