--- name: design-build description: Generate production-ready HTML/Tailwind code from design specifications and DESIGN.md design tokens. Uses design engineering principles, Tastemaker aesthetic rules, and modern layout/typography systems to build non-boring, stunning web interfaces. --- # /design-build Generate production-quality code from a design spec and optional DESIGN.md tokens. Produces single-file HTML with Tailwind CSS via CDN (phase 1) or React/UI components. Incorporates guidelines from installed design skills: - **`tastemaker`**: Avoid generic AI slop (indigo/purple gradients, generic soft-shadow cards). - **`landing-page-design`**: Structured hero section, headline/CTA hierarchy, conversion layout. - **`emil-design-eng` & `animate`**: Micro-interactions, spring curves, component polish. - **`better-colors`, `better-layout`, `better-typography`**: Whitespace, contrast, typographic scale. - **`web-design-engineer`**: High-craft frontend design engineering standards. ## Flow ### Step 1: Gather requirements Ask the user two questions: 1. **"What are we building?"** — Description of the page, component, or interface. Be specific about functionality, layout, content. 2. **"What style? Pick from awesome-design-md, describe it, or reference a vibe."** — URL to a DESIGN.md file, or free text description. If the user explored in `design-explore`, reference the same direction. ### Step 2: Extract tokens & design guidance If a DESIGN.md URL is provided, download it: ```bash curl -sL -o /tmp/design-tokens.md ``` Extract: - Palette (background, primary, accent, surface) - Typography (font families, scales, weights) - Spacing & Layout - Border radius & Shadows - Visual Identity notes Also inspect installed skills in `~/.agents/skills/` (such as `tastemaker`, `landing-page-design`, `better-typography`, `better-colors`) for applicable guidelines on the target component type. ### Step 3: Build the code prompt Create a detailed prompt for the `coder-pro` sub-agent: ``` You are a top-tier Web Design Engineer building a production-quality UI component/page. ## What to build {user's design description — what it is, what it does, layout, content} ## Design tokens & rules (MUST follow strictly) {extracted tokens or style requirements} ## Aesthetic & Craft Principles (from Tastemaker & Design Engineering) - NO "AI slop" or generic templates: avoid default indigo-to-purple gradients, generic soft-shadow cards, and cookie-cutter hero sections. - Distinct Visual Vibe: choose an intentional aesthetic (e.g. brutalist, glass-morphism, warm editorial, high-contrast dark, Apple-like precision). - Typography: strong typographic hierarchy with contrasting sizes and font weights (e.g., tight display headers, readable body). - Whitespace & Padding: generous whitespace; group elements with padding rather than heavy border lines. - Interactivity & Motion: subtle, polished hover transitions (`transition-all duration-200 ease-out`, hover elevation/scale). ## Technical requirements - Single HTML file with Tailwind CSS via CDN () - Custom