Command Palette

Search for a command to run...

components.json

The components.json file holds configuration for your project. It is used by the CLI to understand how your project is set up and how to generate components.

Example

{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "new-york",
  "rsc": true,
  "tsx": true,
  "tailwind": {
    "config": "",
    "css": "src/app/globals.css",
    "baseColor": "neutral",
    "cssVariables": true,
    "prefix": ""
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils",
    "ui": "@/components/ui",
    "lib": "@/lib",
    "hooks": "@/hooks"
  },
  "registries": {
    "shincn": {
      "url": "https://ui.ch.sh/r"
    }
  }
}

Using the shincn registry

When you add the registries block to your config, you can add components without the --registry flag:

npx shadcn add shincn/button
npx shadcn add shincn/card shincn/dialog

This is equivalent to passing --registry https://ui.ch.sh/r on every command.