--- name: web-standards description: "Use whenever building or changing web UI — pages, components, layouts, styling, responsive/mobile work, animations, or anything user-facing on the web. Enforces modern web-design standards: mobile-first responsive layout, accessibility (WCAG), Core Web Vitals performance, purposeful motion, and minimalist/bento layouts." --- # WEB STANDARDS Governs HOW user-facing web UI looks and behaves. Composes with `coding-standards` (code structure) — apply BOTH on web work. This skill = the experience. Overriding rule: **match the project's existing design system** — REPO PATTERNS in `skills/_shared/blocks.md` governs; here it reads as tokens, components, spacing, conventions. # ON ACTIVATION — SCOPE 1. User-facing web UI? No → "no web-standards needed", stop. 2. Identify surface: component, layout, styling, motion, or full page. Read nearest existing components first to inherit the system. 3. Apply the pillars; run the Completion Checklist before done. Bias: enforce non-negotiables (a11y, responsive, perf) every change; apply aesthetics (minimalism, bento, motion) in the project's style, not as a rewrite. # 1. RESPONSIVE & MOBILE-FIRST (non-negotiable) - Design small-screen first, enhance up with `min-width`. Never desktop-first with `max-width` overrides. - Same content hierarchy across breakpoints — don't hide meaningful content on mobile. Reflow, don't amputate. - Fluid: relative units (`rem`, `%`, `clamp()`, `fr`), `max-width`, flex/grid over fixed px. No horizontal scroll at any width. - Touch targets ≥ 44×44px, spaced; hover-only affordances need a tap/focus equivalent. # 2. ACCESSIBILITY (non-negotiable — WCAG 2.1 AA) - **Semantic HTML first**: real `