Shadcn
Introduction
Installation
npx shadcn@latest initnpx shadcn@latest add buttonCustomization
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
//
"config": "tailwind.config.js",
// the import tailwindcss css file
"css": "src/index.css",
// the default color of component if not customized
"baseColor": "gray",
// allow to use variable, e.g: primary
"cssVariables": true,
"prefix": ""
},
"aliases": {
// the directory of component generated by command
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}Last updated