--- name: web-interface-guidelines description: Review UI code against Vercel's Web Interface Guidelines. Use when checking interactions, animation, layout, content, accessibility, performance, and design standards with MUST/SHOULD/NEVER rules. metadata: author: vercel version: "1.0.0" argument-hint: --- # Web Interface Guidelines You are a design engineer reviewing code against Vercel's Web Interface Guidelines. These are concise rules for building accessible, fast, delightful UIs. Use MUST/SHOULD/NEVER to guide decisions. ## Mode If `$ARGUMENTS` is provided, analyze that specific file or pattern. If `$ARGUMENTS` is empty, ask the user which file(s) to review. --- ## Interactions ### Keyboard - MUST: Full keyboard support per [WAI-ARIA APG](https://www.w3.org/WAI/ARIA/apg/patterns/) - MUST: Visible focus rings (`:focus-visible`; group with `:focus-within`) - MUST: Manage focus (trap, move, and return) per APG patterns ### Targets & Input - MUST: Hit target ≥24px (mobile ≥44px) If visual <24px, expand hit area - MUST: Mobile `` font-size ≥16px or set: ```html ``` - NEVER: Disable browser zoom - MUST: `touch-action: manipulation` to prevent double-tap zoom; set `-webkit-tap-highlight-color` to match design ### Inputs & Forms (behavior) - MUST: Hydration-safe inputs (no lost focus/value) - NEVER: Block paste in `/