shadcn-ui

Copy shadcn-ui components from a remote registry into a project via CLI.

3|Updated Aug 17, 2020
One-click install
npx skills add https://github.com/d-kimuson/dotfiles --skill shadcn-ui-d-kimuson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn-ui
Source: https://github.com/d-kimuson/dotfiles/tree/main/claude-code/skills/shadcn-ui
Command: npx skills add https://github.com/d-kimuson/dotfiles --skill shadcn-ui-d-kimuson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

shadcn-ui provides a code distribution approach for adding UI components to your project. Instead of installing a package, you copy components from a remote registry into your codebase, keeping you in control of updates and customization.

Core Features & Use Cases

  • CLI-driven component addition: Use pnpx shadcn@latest add to add individual components.
  • Component preview: View components before adding with view subcommands.
  • Deterministic updates: Overwrite existing components when you deliberately run an update, preserving ownership of copied code.

Quick Start

pnpx shadcn@latest add button

Frequently Asked Questions about shadcn-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add UI components to my project without installing packages?

shadcn-ui enables copying component source code from a remote registry into your project via CLI. Run pnpx shadcn@latest add button to add individual components, keeping full control over updates and customization without managing dependencies.

Can I preview shadcn-ui components before adding them to my project?

Yes, shadcn-ui supports previewing components before integration. Use pnpx shadcn@latest view to inspect components from the official catalog, letting you verify they fit your needs before copying source code into your codebase.

What are the technical requirements for using shadcn-ui components?

shadcn-ui requires TypeScript, Tailwind CSS, and Radix UI primitives. You must configure components.json in your project and ensure your environment supports the pnpx CLI to copy and manage component source code.

How do I update shadcn-ui components after adding them?

Update components deterministically by running pnpx shadcn@latest add <component> --overwrite. This replaces the existing component code while preserving your project's ownership of the copied files without editing constraints.

Does shadcn-ui work with Tailwind CSS and Radix UI?

Yes, shadcn-ui is built on Tailwind CSS for styling and Radix UI for accessible primitives. Both are required dependencies for the CLI-driven component distribution workflow to function correctly in your project.

Can I add multiple components at once with shadcn-ui?

Yes, shadcn-ui supports adding single or multiple components in one workflow. Use pnpx shadcn@latest add to add individual components, or batch-add multiple components from the official registry via the CLI.