# Design Process — Engineering Quality Gate (Track A: hand-built UI) This file defines **engineering implementation quality** for hand-built HTML/CSS/JS. Style direction is provided via ui-design's Taste Overlay Contract: - Brief Inference - Design Dials - Anti-slop hard rules Implement style from taste-skill first, then validate with this engineering gate. --- ## Scope `ui-design` owns: - accessibility implementation - theme mechanics (light/dark) - responsive stability - interaction-state reliability - runtime correctness and delivery checklist `taste-skill` overlay owns: - style inference and art direction - layout variation strategy - visual density and motion intensity style targets - anti-template/anti-slop style filtering --- ## Mandatory workflow (Track A) 1. Resolve style using taste-skill overlay in ui-design flow. 2. If the page is interactive, write a motion plan before implementation. 3. Build HTML/CSS/JS. 4. Validate against this engineering gate. 5. Run final taste anti-slop check. 6. Deliver only after both gates pass. ### Motion plan requirement for interactive pages For any interactive UI (buttons, tabs, dropdowns, drawers, modals, sortable lists, drag/swipe gestures), motion is mandatory and must include: - purpose per motion (feedback, state change, orientation, continuity) - frequency-aware decision (high-frequency actions should be near-instant or unanimated) - easing and duration choice (avoid default/browser-generic feel) - reduced-motion fallback No motion plan = incomplete implementation. --- ## Required implementation baseline ### 1) Document and structure - Valid ``, `charset`, `viewport` - Semantic landmarks where applicable (`header`, `main`, `nav`, `section`, `footer`) - One clear `h1`; heading order must be sequential ### 2) Theme system (mandatory) - Support both light and dark themes - Use CSS custom properties for color tokens - Theme toggle persists in `localStorage` - Initial theme respects `prefers-color-scheme` if no saved choice - Both themes fully usable (not invert-only) ### 3) Accessibility baseline (mandatory) - Body text contrast >= 4.5:1 - Large text / UI controls >= 3:1 - Visible keyboard focus on all interactive elements - Icon-only buttons require `aria-label` - Inputs require visible `