GitHub

components.json

Configuration for your project.

The components.json file holds configuration for your project.

Note: The components.json file is optional

It is only required if you’re using the CLI to add components to your project. If you’re using the copy and paste method, you don’t need this file.

Schema#

components.json
{
"$schema": "https://ui.shadcn.com/schema.json",
"tailwind": {
"css": "src/styles/global.css",
"config": "",
"baseColor": "slate",
"cssVariables": true
},
"aliases": {
"utils": "~/lib/utils",
"components": "~/components"
},
"style": "default",
"rsc": false,
"tsx": true
}

Change the Tailwind CSS file path and aliases according to your project structure.

Check out shadcn/ui docs for more information about the components.json file.