Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

design-token-contrast

Skill by sickn33

Checks WCAG 2.2 contrast between a project's light and dark theme color tokens and suggests passing colors that keep the hue. Built for designers and developers who maintain design tokens and accessibility.

  • Score 93
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install design-token-contrast

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/design-token-contrast ~/.claude/skills/design-token-contrast

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install design-token-contrast in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Design Token Contrast checks WCAG 2.2 contrast between the color tokens of a project, in both the light and dark themes. It measures tokens rather than rendered screens, so a fix made in a token applies everywhere that token is used. For each failing pair, it proposes the color with the same hue and the nearest lightness that passes.

A Node checker reads --color custom properties in hex, rgb, hsl or oklch, pairs text and background tokens by name, and prints OK or NO for each pair. It applies 4.5:1 for normal text and 3:1 for large text and UI components. The skill proposes one value per token and makes changes only after the user approves them. It is aimed at designers and developers who maintain palettes and accessibility.

Written from the project's SKILL.md and checked against it.

What it can do

  • Token contrast checkMeasures WCAG 2.2 contrast of text and background color tokens in light and dark themes.
  • Passing color suggestionProposes the color with the same hue and nearest lightness that passes for each failing pair.
  • Single value per tokenProposes one value per token that passes against every background it is measured on.
  • Manual pair fileAccepts a JSON file of explicit text and background pairs when token names are unconventional.
  • JSON outputWrites results to a file with the --json option for further processing.

What you need

  • Node.js 18 or later
  • A project with CSS custom properties for colors

Try asking

  • Check the color tokens in src/styles/tokens.css for WCAG contrast.
  • Check whether my dark theme text passes 4.5:1 on its background.
  • Suggest a passing version of --color-text that keeps its hue.

Good to know

  • Measures tokens, not rendered pixels, so images, gradients and opacity need a visual check.
  • Pairs tokens by name, which is a heuristic.
  • Uses regular expressions rather than the browser CSS cascade, so some styles may be misread.
  • Output is in Spanish; the script does not validate every CSS color syntax.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/design-token-contrast/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/contraste-checker.md18 KB

Alternatives to design-token-contrast

All alternatives →
paperbananadwzhu-pku
94

PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.

AAA Skill 50k
code-slice-heroheygen-com
94

Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.

AAA Skill 92k
patentfigdavila7
94

Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

design-token-contrast: common questions

Does it check dark mode too?

Yes. It separates the default theme from dark mode defined by prefers-color-scheme: dark, .dark or [data-theme=dark].

Does it change my tokens automatically?

No. The skill never edits tokens by itself; changes are proposed and applied only after the user approves.

Does the checker make network requests?

No. The script reads the file you point it to, writes a file only with --json, and installs nothing.

How do I install design-token-contrast?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is design-token-contrast free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is design-token-contrast safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to design-token-contrast?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

design-token-contrast Install

Add to stack

Loading.