--- name: -design-system description: Design system for the project. Color tokens, typography, spacing, radii, shadows, motion durations, and component vocabulary. Load and apply whenever building UI for this project — generating mocks, writing components, picking colors, configuring Tailwind, styling native screens, building themes, designing CSS, or making any visual decision. The canonical visual reference for this project; if anything visible is being touched, this skill should be in context. Pairs with -interaction-design. --- # design system > **Status: ** > Generated by Composer's `ui-system` phase. Re-running that phase > updates this skill (with confirmation). ## How to use this skill Whenever you generate or edit UI for this project — a mock, a real component, a theme, a CSS file — read this SKILL.md and the sidecar files first, then use the tokens. Do not hardcode values. Do not introduce new components without proposing them here first. Sidecar files in this skill directory: - `tokens.ts` — machine-readable token export. Import in mocks/code. - `components.md` — component vocabulary with anatomy. ## Visual posture ## Color ### Brand - Primary: `<#hex>` — - (Secondary, if any): `<#hex>` — ### Neutrals - Tone: - Scale: 50 / 100 / 200 / 300 / 400 / 500 / 600 / 700 / 800 / 900 / 950 ### Semantic | Role | Value | |---|---| | Success | `<#hex>` | | Warning | `<#hex>` | | Error | `<#hex>` | | Info | `<#hex>` | ### Dark mode ## Typography - **Display family**: , weights - **Body family**: , weights - **Scale base**: , ratio <1.125 | 1.2 | 1.25 | 1.333> - **Sizes**: xs / sm / base / lg / xl / 2xl / 3xl / 4xl - **Line-height**: tight for display, normal for body, relaxed for long-form prose See `tokens.ts` for exact px values. ## Spacing - **Base unit**: <4px | 8px> - **Scale (in base units)**: 0, 0.5, 1, 1.5, 2, 3, 4, 6, 8, 12, 16, 24 ## Radii - `sm`, `md`, `lg`, `pill`, `full` — values in `tokens.ts`. ## Shadows - `xs / sm / md / lg / xl` — values in `tokens.ts`. - (Or: "flat — no shadows" if the posture is flat.) ## Visual motion - **Default duration**: - **Default easing**: Behavioral motion (when things animate, what does and doesn't) lives in the interaction-design skill. ## Components See `components.md` in this directory for the full vocabulary and anatomy. The TL;DR list: - Button (primary / secondary / ghost / destructive / link) - Input (text / textarea / select / checkbox / radio / toggle) - Card / Surface - (project-specific components from `ia.md`) ## TBD on return -