web-interface-guidelines-review
Skill2 starsChanged 5 months agoMITView on GitHub
Use when reviewing UI code or design output (React, Vue, Svelte, Astro, plain HTML, design specs) for adherence to web-interface guidelines — Vercel's WIG, Material 3, Radix patterns, and similar opinionated rule sets — extended with token-driven contrast, typography-scale, and spacing-system rules. Names the APCA-preferred contrast stance (cross-check WCAG 2.2 AA, never WCAG-only), the atomic typography class convention (one class binds font + size + lh + tracking + weight), the token-not-raw-hex rule, verb-noun action labels, the focus-ring contract (>= 2 px, 3:1 against both control and adjacent surface, never suppressed), the 24 CSS px WCAG 2.5.8 interactive floor, and the link-vs-button distinction. Cite when an agent reviews UI without checking token discipline, hardcoded values, or atomic typography compliance.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- dycnnnb/skillstheir own version, first seen Mar 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- dycnnnb/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- clud-bug-collaborationSkill
- critical-issues-onlySkill
- evidence-based-reviewSkill
- respect-existing-conventionsSkill
- skill-frontmatter-qualitySkill
- apca-contrastSkill
- api-contract-enforcementSkill
- brand-voice-reviewSkill
- chroma-harmonizationSkill
- clud-bug-collaborationSkill
- component-sizing-principlesSkill
- component-sizingSkill
- composing-a-screenSkill
- consuming-a-design-systemSkill
- conventions-templateSkill
- critical-issues-onlySkill
- curating-a-skill-catalogSkill
- designing-a-design-systemSkill
- designing-elite-uiSkill
- design-system-consistencySkill
- design-token-namingSkill
- dtcg-formatSkill
- empirical-design-principlesSkill
- evidence-based-reviewSkill
- finding-a-catalog-skillSkill
- frontend-a11ySkill
- guarding-a-regressionSkill
- line-height-gridSkill
- logmindSkill
- oklch-color-spaceSkill
- orchestrating-agent-delegationSkill
- orchestrating-a-multi-agent-runSkill
- orchestrating-elite-agent-qaSkill
- palette-relationshipsSkill
- pii-and-complianceSkill
- proving-an-absenceSkill
- respect-existing-conventionsSkill
- retiring-a-superseded-decisionSkill
- reviewing-design-workSkill
- semver-design-tokensSkill
- session-heartbeatSkill
- skillforgeSkill
- skill-frontmatter-qualitySkill
- spacing-systemSkill
- test-disciplineSkill
- token-frugal-toolingSkill
- token-naming-conventionsSkill
- type-scaleSkill
- udts-component-sizing-laddersSkill
- udts-dtcg-extensionsSkill
- udts-linter-rulesSkill
- udts-naming-conventionSkill
- udts-reviewSkill
- udts-semver-defaultsSkill
- udts-spacing-defaultsSkill
- udts-token-modelSkill
- unattended-operationSkill
- usability-heuristicsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
After a Figma → code handoff, before merging.
- Distinctive: line 29
Primary model is APCA Lc: Verify the foreground color hits its declared Lc target (typically 90 fluent body, 75 body minimum, 60 secondary, …
- Distinctive: line 30
WCAG 2.2 AA is a cross-check, not the primary: Verify the pair also meets 4.5:1 (normal) / 3:1 (large or non-text) per wcag-contrast.
- Very specific: line 37
Sizes come from the type scale: Every rendered font-size matches a step from the system's modular scale (1.067 → 1.618 family).
- Very specific: line 59
Use the framework's router (<Link>, useRouter) for SPA navigation.
- Very specific: line 63
Focus-visible always: Every interactive element has a visible focus ring on :focus-visible.
- Distinctive: line 65
Keyboard reachability: every interactive control is tabbable.
- Very specific: line 70
Every form control has a programmatic label (<label>, aria-label, or aria-labelledby).
- Very specific: line 71
Search inputs use type="search".
- Very specific: line 89
No raw hex, no raw px, no raw rem in source.
- Distinctive: line 107
After completing a review:
- Distinctive: line 109
Every finding cites a rule: No vibes-based "this feels off."
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Web interface guidelines review
When to use
- Reviewing a PR that adds or modifies UI components.
- Auditing an existing UI surface for token discipline, contrast, focus handling, and a11y.
- Writing or reviewing design specs that propose new components.
- After a Figma → code handoff, before merging.
When NOT to use
- Pure backend / non-UI PRs (skill won't fire on a server-route change).
- Marketing-only landing pages with bespoke design that intentionally lives outside the system.
- Prototype code explicitly labeled as throwaway.
The review checklist
Apply each section in order. Stop and flag at the first failure in each section.
1. Contrast: APCA-preferred, WCAG cross-check
- Primary model is APCA Lc. Verify the foreground color hits its declared Lc target (typically 90 fluent body, 75 body minimum, 60 secondary, 45 large display, 30 spot, 15 non-text — see apca-contrast).
- WCAG 2.2 AA is a cross-check, not the primary. Verify the pair also meets 4.5:1 (normal) / 3:1 (large or non-text) per wcag-contrast. Sizes are in points, not pixels (18 pt ≈ 24 CSS px; 14 pt bold ≈ 18.67 CSS px).
- Flag any review that cites WCAG as the only model — APCA catches real perceptual failures WCAG misses.
- Flag hardcoded hex in source: every contrast-bound color resolves from a token (role families content / surface / border — see token-naming-conventions).
2. Typography: atomic classes from the scale
- Atomic typography classes. One Tailwind / utility class binds font-family + size + lh + tracking + weight — e.g.
body-md,heading-lg. No à-la-carte composition (text-sm font-medium tracking-tight). - Sizes come from the type scale. Every rendered font-size matches a step from the system's modular scale (1.067 → 1.618 family). Flag arbitrary px like
text-[13px]— outside the scale. - Line-height per role. UI text uses
lh-ui(× 1.20 + grid snap); paragraph body useslh-prose(× 1.50 + grid snap). See line-height-grid. - Body text never below 14 pt (≈ 18.67 CSS px); UI labels usable down to 12 CSS px for non-fluent content (badges, metadata) but never below 10 px.
3. Spacing + sizing: token-driven
- Padding, gap, margin values are tokens from the spacing scale (
padding-*/space-*/gap-*), not raw px. See spacing-system. - Component heights come from the system's per-density curated ladder. See component-sizing-principles.
- Interactive heights ≥ 24 CSS px per WCAG 2.5.8 (AA, Target Size Minimum). Rungs below that floor are non-interactive only; whether a ladder's smallest rung is additionally reserved is owned by
component-sizing-principles. - Flag inconsistent rung mixing in the same UI surface (
sm+mdbuttons side by side reads as a typo, not a hierarchy).
4. Action labels: verb-noun
- Buttons that perform an action use verb-noun ("Save changes", "Send invitation", "Open settings"). Never "Click here!", "Submit", or "OK" alone.
- Links that navigate use destination-descriptive text ("Browse all results", not "Click here"). WCAG 2.4.4.
- Flag tone drift: marketing exclamation marks, hedging ("might want to"), emoji in interactive labels.
5. Link vs button
- Links go places. Buttons do things. Navigating or changing the URL is an
<a>/<Link>; triggering an action is a<button>. - Flag
<button>usingwindow.location.href = …orrouter.push(…)— that's a link. - Flag
<a>withonClickdoing in-place mutation andhref="#"— that's a button. - Use the framework's router (
<Link>,useRouter) for SPA navigation; never rawwindow.locationreassignment.
6. Focus + keyboard
- Focus-visible always. Every interactive element has a visible focus ring on
:focus-visible. The default Tailwind reset suppresses outlines; the system must re-add them. - Focus ring contract: 3:1 against both the control and the adjacent surface — 1.4.11, AA. The ≥ 2 px perimeter is 2.4.13, AAA: an enhancement, never an AA failure. A well-formed system's focus token satisfies both.
- Keyboard reachability: every interactive control is tabbable; tab order matches visual order.
- Escape closes overlays: dialogs, popovers, dropdowns close on Escape.
7. Forms
- Every form control has a programmatic label (
<label>,aria-label, oraria-labelledby). Placeholders are NOT labels — they vanish on focus. - Search inputs use
type="search"; emailstype="email"; numberstype="number"with sensibleinputmode. Mobile keyboard semantics depend on the type. - Forms submit on Enter (a
<form>wrapper with a submit handler, not a<button onClick>that ignores Enter). - Required fields marked both visually (asterisk + legend) and programmatically (
requiredoraria-required).
8. Icons + non-text content
- Decorative icons get
aria-hidden="true"and no accessible name. - Functional icons (icon-only buttons) get an accessible name via
aria-label("Search", "Close dialog"). - Icon sizes come from the curated ladder (e.g. 12, 16, 24, 32, 40, 48), paired with the control's rung per
component-sizing-principles. No arbitrarysize={14}.
9. Motion
- Honor
prefers-reduced-motion: reduce— reduce animation distance and easing, or remove non-essential motion entirely. - Transitions on color, transform, and opacity only; never
width,height,top,left(they trigger layout). - Durations from a token (
duration-fast/duration-default/duration-slow), not arbitrarymsvalues.
10. Token discipline
- No raw hex, no raw px, no raw rem in source. Every value resolves from a token (a text role token,
padding-md,radius-lg, etc.). - Component tokens reference semantic / color-mode tokens, never primitives directly (see
token-naming-conventionsfor the two chain shapes). - Flag inline
style={{ … }}carrying values that should be tokens; the only exception is values genuinely computed at runtime.
How to phrase findings
- One finding per comment. Bundling unrelated issues makes them hard to track.
- Cite the rule + the source (WCAG SC, WIG section, the relevant skill name).
- Show the fix, not just the rule. "Replace
style={{ color: '#666' }}withclassName=\"text-secondary\"" beats "use the design tokens." - Quote the offending line verbatim before the critique.
Cross-references
- REQUIRED BACKGROUND: contrast — apca-contrast, wcag-contrast; typography — type-scale, line-height-grid; spacing — spacing-system, component-sizing-principles; tokens — token-naming-conventions, dtcg-format.
- UI-string voice: brand-voice-review.
Verification
After completing a review:
- Every finding cites a rule. No vibes-based "this feels off."
- Every finding has a fix. Fixless findings get rejected.
- Sections applied in order. Contrast and a11y come before token discipline; don't lead with cosmetic findings.
- No bundled comments.
- Skills cross-referenced. Contrast findings cite
apca-contrast/wcag-contrast; size findings citetype-scale/component-sizing-principles.
Sources
- Vercel Web Interface Guidelines — the WIG canon.
- Material Design 3 — alternate canon for cross-checks.
- Radix UI documentation — accessible-component reference.
- WCAG 2.2 Recommendation — the legal baseline.
- System-specific review layers (e.g. udts-review, incubating) compose on top of this generic lens.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

