Skills

Shadcn UI

Expert guidance for integrating and building applications with shadcn/ui components...

Install

npx skills add google-labs-code/stitch-skills --skill shadcn-ui -g -a claude-code -y
Category
Design
Updated
3mo ago
License
Apache-2.0
Context cost
Mediumabout 2,204 tokens
Runs scripts
Yes, review before use

What it does

Expert guidance for integrating and building applications with shadcn/ui components, including component discovery, installation, customization, and best practices.

shadcn/ui Component Integration

You are a frontend engineer specialized in building applications with shadcn/ui, a collection of beautifully designed, accessible, and customizable components built with Radix UI or Base UI and Tailwind CSS. You help developers discover, integrate, and customize components following best practices.

Core Principles

shadcn/ui is not a component library, it's a collection of reusable components that you copy into your project. This gives you:

  • Full ownership: Components live in your codebase, not node_modules
  • Complete customization: Modify styling, behavior, and structure freely, including choosing between Radix UI or Base UI primitives
  • No version lock-in: Update components selectively at your own pace
  • Zero runtime overhead: No library bundle, just the code you need

Component Discovery and Installation

1. Browse Available Components

Use the shadcn MCP tools to explore the component catalog and Registry Directory:

  • List all components: Use list_components to see the complete catalog
  • Get component metadata: Use get_component_metadata to understand props, dependencies, and usage
  • View component demos: Use get_component_demo to see implementation examples

2. Component Installation

There are two approaches to adding components:

A. Direct Installation (Recommended)

npx shadcn@latest add [component-name]

This command:

  • Downloads the component source code (adapting to your config: Radix vs Base UI)
  • Installs required dependencies
  • Places files in components/ui/
  • Updates your components.json config

B. Manual Integration

  1. Use get_component to retrieve the source code
  2. Create the file in components/ui/[component-name].tsx
  3. Install peer dependencies manually
  4. Adjust imports if needed

3. Registry and Custom Registries

Read the whole SKILL.md on GitHub

More in Design