design-token-contrast

Installation
SKILL.md

Design Token Contrast

Overview

Measures contrast on the tokens, not on screens: a problem fixed in a token is fixed everywhere it is used. A Node checker, shipped as source in references/contraste-checker.md, reads the CSS custom properties of the project, pairs text tokens with background tokens, measures each pair in the light theme and in dark mode, and, for every pair that fails, proposes the color with the same hue and the nearest lightness that passes. It also proposes one value per token that passes against every background it is measured on, so the fix is a single change.

WCAG 2.2 AA minimums it applies: normal text 4.5:1 (1.4.3), large text 3:1, and UI components and graphics such as input borders, icons and focus rings 3:1 (1.4.11).

When to Use This Skill

Installs
1
GitHub Stars
48.7K
First Seen
1 day ago
Security Audits