tailwind-shadcn
Installation
SKILL.md
Tailwind + shadcn/ui
Apply these patterns whether you're building new UI from scratch or refactoring existing code — the rules are the same either way.
Detect framework first
This skill serves two ecosystems. Before doing anything, read package.json to detect which one you're in:
react/react-dompresent → React mode. Primitive layer is Base UI; the CLI is the officialnpx shadcn@latest. Gather project context by running:
Key fields:npx shadcn@latest info --jsontailwindVersion(v4 uses@theme inline; v3 usestailwind.config.js),tailwindCssFile(always edit this file for CSS variables — never create a new one),aliases(use the actual alias prefix for imports, never hardcode),base(the primitive layer).solid-jspresent → Solid mode. Primitive layer is Kobalte (Zaidan components); the CLI isnpx shadcn-solid@latest(much thinner — noinfo/search/docs). Gather project context by readingui.config.json+package.json. See references/cli-shadcn-solid.md and references/primitives-solid.md.