- Configuration file for ShadCN UI.
- Controls how components are generated and where styles are sourced.
Example
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.cjs",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
Purpose
- Tells the CLI where your Tailwind config and styles live.
- Lets you add components with commands like:
npx shadcn-ui@latest add button