Design & UI
Use when adding a shadcn/ui component to a project with an opinionated design system, so the copied component matches the system rather than the shadcn defaults. Also use when an installed component brings radii, shadows, or colors that fight the design contract, when accessibility was lost while restyling, or when variants have drifted apart across components. If a component is copied in from a registry, use this skill.
1 file
Description
Use when adding a shadcn/ui component to a project with an opinionated design system, so the copied component matches the system rather than the shadcn defaults. Also use when an installed component brings radii, shadows, or colors that fight the design contract, when accessibility was lost while restyling, or when variants have drifted apart across components. If a component is copied in from a registry, use this skill.
Adding a button, dialog, dropdown, or any shadcn/ui component to a codebase with an established visual contract (specific radius, palette, borders, no gradients).
shadcn copies component source into your repo. That is the feature: you own it and edit it. The defaults (rounded corners, a specific ring color, subtle gradients) are opinions that will clash with a strict system. Reconcile them on install, not later.
npx shadcn@latest add button. Serialize installs; only one process should own package.json at a time or the lockfile races.rounded-* classes or set the radius token to 0.bg-gradient-* or heavy shadow the system forbids.asChild pattern, focus-visible rings, aria attributes, and keyboard handlers. Adapt the look, not the behavior.cva variant map so every usage pulls from the same source instead of one-off overrides at call sites.shadcn add commands in parallel corrupts components.json or the lockfile. Serialize them.Added 2026-07-01. Back to the Skill Library.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.