Loading...
Loading...
Configure shadcn/ui registries, components.json, and CLI commands. Covers default Radix registry, Base UI registry, and custom registries.
npx skill4agent add fusengine/agents shadcn-registriesTeamCreate| Registry | Primitives | Style |
|---|---|---|
| Radix UI | |
| Base UI | |
| Custom | Any | Custom |
project/
├── components.json # shadcn/ui configuration
├── components/ui/ # Generated components
└── lib/utils.ts # Utility functions (cn)shadcn-detection{runner}bunxnpxpnpm dlxyarn dlx# Initialize
{runner} shadcn@latest init
{runner} shadcn@latest init --style new-york
# Add components (default registry = Radix)
{runner} shadcn@latest add button dialog select
# Add from Base UI registry
{runner} shadcn@latest add --registry=basecn button dialogmcp__shadcn__search_items_in_registries -> find component
mcp__shadcn__get_add_command_for_items -> get exact CLI command{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"tailwind": { "config": "tailwind.config.ts", "css": "app/globals.css" },
"aliases": { "components": "@/components", "utils": "@/lib/utils" }
}| Topic | Reference | When to Consult |
|---|---|---|
| Registry Config | registry-config.md | Setting up components.json |
| Template | When to Use |
|---|---|
| registry-setup.md | Initial project setup |