/agentic-awesome-skills:design-token-contrastfrom agentic-awesome-skills
Checks WCAG 2.2 contrast between CSS custom property color tokens in light and dark themes, suggests the closest passing color that preserves hue.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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).
The checker ships as source, not as a committed script: save the JavaScript block in
references/contraste-checker.md as contraste.mjs in a
scratch directory (no dependencies, Node 18+), then run it:
node contraste.mjs --tokens src/styles/tokens.css
Without --tokens it looks for src/styles/tokens.css and other common locations. The script:
--color-* variables in hex, rgb(), hsl() or oklch(), resolves var(--other), and
separates the default theme from dark mode (prefers-color-scheme: dark, .dark or
[data-theme=dark]).text, foreground, link, focus…) over background tokens
(background, bg, surface, card, canvas…). Spanish token names (texto, fondo,
superficie, tarjeta) are recognized too.OK or NO per pair, with the ratio, the minimum and the suggestion.If token names do not follow that pattern, write the real pairs to a JSON file and pass it with
--pares (the keys are texto, fondo and tipo, where tipo is texto or ui):
[{"texto": "--color-gray-500", "fondo": "--color-white", "tipo": "texto"},
{"texto": "--color-input-border", "fondo": "--color-white", "tipo": "ui"}]
To explore a new palette, --todos measures every color against every other. --json out.json
writes the results for further processing. The script's output is in Spanish; ratios and token
names read the same in any language.
#[0-9a-fA-F]{3,8},
rgb(, text-[#).hover, disabled (exempt, but still distinguishable), and placeholders that carry
information.| Pair | Now | Minimum | Suggestion | Where it is used |
|---|
Search for the classes and var(--color-...) references to fill "where it is used".
== tema claro (por defecto): 4 colores leídos ==
NO 3.54:1 (mín. 4.5) --color-text #888888 sobre --color-background #ffffff
sugerencia para --color-text: oklch(56.2% 0.000 89.9) (#757575) → 4.62:1
Propose #767676 for --color-text (the single value that passes on all its backgrounds), apply
it only after the user agrees, and run the script again to show it passes.
--color-accent-text) for small text and keep the original for fills and borders.--pares when names are unconventional.--json.
It makes no network requests and installs nothing. Requires Node 18+.OK against the light background.
Solution: Make sure dark-mode variables live in a prefers-color-scheme: dark, .dark or
[data-theme=dark] block so the script can separate the themes.@wcag-audit-patterns - For a full WCAG 2.2 audit beyond color contrast.This checker uses regular expressions rather than the browser CSS cascade: scoped selectors, specificity, nested rules, layers, imports and computed values can be misinterpreted. Review explicit pairs against computed rendered styles. A single suggestion is sought within each measured theme, not guaranteed across all themes or backgrounds. Lightness is searched on a discrete grid while chroma may be reduced; neither exact nearest color nor unchanged hue after sRGB clipping/rounding is guaranteed. Re-measure the exact serialized color before applying it. Transparent backgrounds need their actual underlying composite; the checker refuses those pairs rather than assuming white.
Unparsed tokens make coverage incomplete. The lightweight color parser is not a CSS validator and cannot certify color syntax or gamut mapping. Focus requirements also depend on state/context and other WCAG criteria. Read the source before running it on approved inputs; report output uses exclusive private file creation and will fail if the destination exists. No checker or rendered-page validation was executed during this review.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub krishnakanthb13/antigravity-awesome-skills --plugin agentic-awesome-skills3 plugins in 2 repositories ship this exact skill · first indexed Oct 24, 2026
2,799 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.Other plugins' skills for the same job