agentleFS
Synter-Media-AISynter-Media-AI/free-skills/skills/ui-contrast-review/SKILL.md

ui-contrast-review

Skill4 starsChanged 6 months agoMITView on GitHub

Reviewing UI for light/dark contrast, readability, focus states, color-token drift, theme regressions.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 14 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Avoid one-off per-page color patches unless the issue is intentionally local.

    line 20
  2. Distinctive:

    Look for token drift.

    line 51
  3. Distinctive:

    Use WCAG AA as the baseline heuristic:

    line 64
  4. Distinctive:

    When exact ratios are not available, make a practical engineering judgment:

    line 70
  5. Distinctive:

    if text is even slightly hard to read in either theme, treat it as a bug

    line 72
  6. Distinctive:

    if borders disappear into the background, treat it as a bug

    line 73
  7. Distinctive:

    if disabled and secondary states become illegible, treat it as a bug

    line 74
  8. Distinctive:

    If no issues are found, state that explicitly and mention what was checked.

    line 97
  9. Distinctive:

    ensure disabled text is still readable, not just low-opacity

    line 105
  10. Distinctive:

    only checking dark mode

    line 109
  11. Distinctive:

    only checking screenshots without interaction states

    line 110
  12. Distinctive:

    When browser tooling is available, review the real rendered UI.

    line 116
  13. Distinctive:

    When browser tooling is not available, inspect:

    line 118
  14. Distinctive:

    Start with the shared primitives if the same contrast problem appears in multiple pages.

    line 125

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

UI Contrast Review

Review UI surfaces for theme-driven readability and visibility failures.

Primary Goal

Catch light-mode and dark-mode contrast regressions before they ship.

Prefer system fixes:

  • shared tokens
  • semantic color variables
  • reusable component classes

Avoid one-off per-page color patches unless the issue is intentionally local.

Review Workflow

  1. Identify the target surfaces.
  • page routes
  • reusable components
  • empty states
  • tables
  • dialogs
  • badges
  • charts
  • forms
  1. Check both themes.
  • light theme
  • dark theme
  • hover / active / disabled / selected states
  • focus rings and keyboard focus visibility
  1. Inspect the highest-risk UI pairs.
  • body text vs background
  • muted text vs card background
  • button label vs button fill
  • border vs surrounding surface
  • placeholder text vs input background
  • badge text vs badge fill
  • link text vs surrounding paragraph
  • chart lines/bars vs canvas background
  • toast/alert text vs status fill
  1. Look for token drift.
  • hard-coded Tailwind colors mixed with semantic theme tokens
  • text-muted-foreground on surfaces that are already muted
  • border-white/10 or border-black/10 used in the wrong theme
  • color combinations that only work in one theme
  1. Recommend the smallest durable fix.
  • first choice: theme variable / semantic token
  • second choice: shared component class
  • last choice: local page override

Minimum Contrast Standard

Use WCAG AA as the baseline heuristic:

  • normal text: aim for 4.5:1 or better
  • large text: aim for 3:1 or better
  • UI boundaries and focus indicators: visibly distinct without requiring hover

When exact ratios are not available, make a practical engineering judgment:

  • if text is even slightly hard to read in either theme, treat it as a bug
  • if borders disappear into the background, treat it as a bug
  • if disabled and secondary states become illegible, treat it as a bug

Output Format

For each issue, provide:

  • surface
  • theme
  • failing element
  • why it fails
  • preferred fix
  • file/component reference when available

Use this structure:

Findings
1. [severity] Surface — issue
File: path/to/file.tsx
Theme: light|dark|both
Fix: semantic token or component-level change

If no issues are found, state that explicitly and mention what was checked.

Good Fix Patterns

  • replace hard-coded color with semantic token
  • raise muted foreground contrast one step
  • strengthen border token for light theme separately from dark theme
  • give focus rings a dedicated accessible token
  • ensure disabled text is still readable, not just low-opacity

Avoid

  • only checking dark mode
  • only checking screenshots without interaction states
  • fixing with arbitrary hex values when a shared token should exist
  • shipping “looks okay on my screen” judgments without checking both themes

Notes

When browser tooling is available, review the real rendered UI.

When browser tooling is not available, inspect:

  • route components
  • shared UI primitives
  • Tailwind utility usage
  • CSS variables / theme tokens

Start with the shared primitives if the same contrast problem appears in multiple pages.


About this skill

Part of the Synter free skills collection — open-source agent skills for advertising, PPC, and marketing automation.

Want this skill (and 40+ more) running on autopilot against your live ad accounts? Try Synter — AI Agent Media Buyers that connect to Google, Meta, LinkedIn, TikTok, Reddit, Amazon, and 7+ more platforms.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.