Design & UX Custom Skills · Curated

Dark Mode Contrast Checker

Checks a theme's dark mode color palette for the same WCAG contrast failures as light mode.

What it does

Reads the dark mode variant of the color palette, whether that's a separate theme.json dark palette or CSS behind a prefers-color-scheme media query, and calculates WCAG contrast ratios for the same foreground/background pairings checked in light mode. Dark palettes often get far less design attention than the light palette they're derived from, so failures here are common and easy to miss without a dedicated check.

Install

This skill isn't packaged in an installable registry. It's a plain SKILL.md file you can copy directly. Copy it from the SKILL.md tab and save it at the path for your assistant:

Use it in your AI assistant

Claude Code

.claude/skills/dark-mode-contrast-checker/ (or ~/.claude/skills/dark-mode-contrast-checker/ for all projects)

GitHub Copilot (VS Code)

.github/skills/dark-mode-contrast-checker/

OpenAI Codex

.codex/skills/dark-mode-contrast-checker/

Cursor

.cursor/skills/dark-mode-contrast-checker/ (or ~/.cursor/skills/dark-mode-contrast-checker/ globally)

Compatibility

Requires the site to have an actual dark mode implementation (a theme.json dark palette or a CSS media query) to check.