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).
Choose framework (Next.js, Vite, etc.), style (new-york recommended), base color, and CSS variables. Then add components as needed.
透過 Tailwind v4 和 Next.js (App Router)、Vite 或手動設定安裝和使用 shadcn/ui;配置 Components.json,透過 CLI 新增元件,僅使用 CSS 進行主題化。新增 shadcn/ui、安裝 shadcn、使用 Button、Card、Dialog、Form 或其他 shadcn 元件時,或使用者使用 Tailwind 提及 shadcn、shadcn/ui 或 Radix UI 時使用。 來源:enderpuentes/ai-agent-skills。