design-code
Skill: Design Code
In this project,
shadcn-ui-designis the authority for building/editing UI. Follow its rules: semantic Tailwind tokens (bg-primary,text-muted-foreground,border-border) — never hardcoded colors or raw Tailwind palette (bg-blue-600); add primitives vianpx shadcn@latest add …(don't forkcomponents/ui/*); keep the blue-primary light+dark theme. Use this skill as guidance only — any output must conform toshadcn-ui-design. Token source of truth:.claude/skills/_ux-ui-shared/tokens/*.json→ compiled toapp/globals.css.
Render components into a target framework via the adapter system.
Steps
- Identify the target framework + styling method from the request (or ask).
- Read
.claude/skills/_ux-ui-shared/frameworks/adapter-protocol.md(the universal contract: token resolution, component contract, styling, dark mode, motion + output rules). - Load the concrete adapter:
- Full references:
.claude/skills/_ux-ui-shared/frameworks/react-tailwind.md,.claude/skills/_ux-ui-shared/frameworks/nextjs.md,.claude/skills/_ux-ui-shared/frameworks/swiftui.md. - Concise adapters:
.claude/skills/_ux-ui-shared/frameworks/adapters/{vue,svelte,angular,solid,web-components-lit,react-native,flutter,jetpack-compose,vanilla-css,css-in-js}.md. - No file for the target? Generate an adapter on the fly using the protocol's "author a new adapter" checklist.
- Full references:
- Pull the component spec from
.claude/skills/_ux-ui-shared/components/*and the ARIA pattern from.claude/skills/_ux-ui-shared/accessibility/aria-patterns.md. - Resolve all values to tokens (
.claude/skills/_ux-ui-shared/tokens/*.json); apply aesthetic direction if requested (apply-aestheticskill).
Output rules (mandatory)
Use tokens (never hardcode) · include a11y on every interactive element · handle all applicable of the 8 states · support dark mode at the semantic layer · mobile-first · honor reduced motion · deliver complete files, no placeholders (.claude/skills/_ux-ui-shared/workflows/redesign-audit.md → Output Completeness).