--- name: web-interface description: UI review and audit — Vercel Web Interface Guidelines, copywriting, typography detail, contrast, touch targets, safe areas. Use when auditing or polishing existing UI rather than building new — design review, accessibility audit, copy review, typography and contrast passes, "make this feel more finished", "what's wrong with this component". metadata: version: "15.0.0" core-deps: - core/design-tokens.md - core/accessibility-baseline.md --- # Web Interface Review ## When to Use Auditing or polishing existing UI rather than building new: design review, accessibility audit, copy review, typography and contrast passes, "make this feel more finished", "what's wrong with this component". This skill is mostly *rules to check against* rather than code to generate — but the craft rules have a worked example, cited below. ## Stack Framework-agnostic review · applies to React 19 · Tailwind v4 output ## Core Rules 1. **Surface craft.** Layered shadows (ambient + direct, ≥2 layers), semi-transparent borders, concentric nested radii, hue-consistent borders/shadows on tinted backgrounds. 2. **Interaction increases contrast.** Hover, active and focus states must be *more* contrasted than rest — never less. 3. **Copy is UI.** Active voice ("Install the CLI"), second person, sentence case outside marketing, specific button labels ("Save API Key", never "Continue"), errors that state the fix rather than the failure. 4. **Numbers and units.** Numerals for counts ("8 deployments"), non-breaking space before units (`10 MB`), consistent decimal places within a context, obviously-fake placeholders (`YOUR_API_TOKEN_HERE`). 5. **Typography detail.** `…` not `...` · curly quotes · loading copy ends with an ellipsis · `tabular-nums` in number columns · `text-wrap: balance` on headings. 6. **Overflow is handled.** `truncate`/`line-clamp`/`break-words` on text containers; flex children need `min-w-0` or truncation silently fails. 7. **Touch and safe areas.** `touch-action: manipulation`, `overscroll-behavior: contain` in overlays, `env(safe-area-inset-*)` on full-bleed layouts, intentional `-webkit-tap-highlight-color`. 8. **Images.** Explicit `width`/`height` (CLS), `loading="lazy"` below the fold, `priority` above it. 9. **Rendering artifacts.** Animate a wrapper rather than the text node (anti-aliasing shifts); use images not CSS gradients for long dark fades (banding). 10. **Locale.** `Intl.DateTimeFormat`/`NumberFormat`, never hardcoded formats; `translate="no"` on brand names and code tokens. ## Patterns - **Audit output** — group by file, `file:line — rule — one-line fix`, terse, no preamble. - **Contrast check** — WCAG 2.2 AA is the gate; APCA (Lc ≥75 body) is the tiebreaker when a colour passes 4.5:1 but still reads poorly. - **Anti-pattern sweep** — `user-scalable=no`, blocked paste, `transition: all`, `outline:none` without replacement, `