Design & UI
Install shadcn/ui components and adapt them to a strict design contract: strip defaults that fight your system, keep the accessibility, ship consistent variants.
1 file
Description
Install shadcn/ui components and adapt them to a strict design contract: strip defaults that fight your system, keep the accessibility, ship consistent variants.
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.