Contrast Guardrails — Development skill for Claude Code
Claude Code Skill: pre-flight WCAG-AA color-contrast guardrails that stop your agent from shipping invisible buttons, white-on-white text, and washed-out modals.
How to install Contrast Guardrails
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open OmarEltak/contrast-guardrails and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Contrast Guardrails does
Claude Code Skill: pre-flight WCAG-AA color-contrast guardrails that stop your agent from shipping invisible buttons, white-on-white text, and washed-out modals. Covers 8 recurring failure modes across Tailwind + Flux/Chakra/Radix/NextUI with grep diagnostics and copy-paste fixes.
Alternatives in Development
- /token Scan — Fast rug pull detection for meme coins and token contracts 1.7k ★
- Claude Code Everything You Need To Know — Ultimate all-in-one guide to mastering Claude Code 1.3k ★
- Check A11y — Report WCAG contrast for the theme and the minimal fix to reach AA 452 ★
README
contrast-guardrails
A [Claude Code Skill](https://docs.anthropic.com/en/docs/claude-code/skills) that runs a pre-flight color-contrast review before any UI edit — so your agent stops shipping the same "invisible button", "white-on-white text", "washed-out modal" bugs to production.
Codifies **eight specific low-contrast failure modes** that recur across component-library-heavy codebases (Flux, Chakra, Radix presets, NextUI, and hand-rolled Tailwind), with the exact class combinations that fail, why they fail, and the copy-paste fix.
When it triggers
Claude will auto-invoke this skill when:
- You are about to write
text-white,text-zinc-500, anytext-*-500on a light background,bg-*/5,text-white/*, orborder-white/*in a light-themed component - You are about to use a UI-kit badge, ghost button, muted text component, or modal
- The user reports symptoms like "I can't see the text", "invisible until I select all", "white on white", "gray on white", "green on green", "washed out modal", or pastes a screenshot with missing text
- The user explicitly says "apply contrast skill"
The eight failure modes covered
- UI-kit badges default to white text on light tint (
= invisible) - Framework inputs render typed content as muted gray (typed value indistinguishable from placeholder)
variant="ghost"on light backgrounds = invisible button- Library
inside a tinted alert loses its color (green-on-green flash messages) - White text on gradient with low-opacity color tint (
bg-*/10+text-white) - Dark text on dark-mode background (missing paired
dark:text-*) - Gray-on-gray (
text-zinc-500onbg-zinc-800) - Dark-theme classes surviving inside a light-theme modal (the full "washed-out modal" pattern)
Each failure mode ships with a grep-time diagnostic, root-cause explanation, and safe fix pattern.
Install
Drop it into your project or your global Claud
Related Skills
Accessibility Specialist
Use when a screen might fail WCAG. Unlabeled inputs, no keyboard path, contrast below AA, missing landmarks, b
Skill.Color Expert
Agent skill for color science expertise. Many references covering color spaces, accessibility (APCA, WCAG), pa
Color Specialist
Use when colour is failing. Contrast below AA, a palette with no system behind it, dark mode that is only inve
Colorsystem
Build or repair a purposeful, contrast-checked color system
Palette From Brand
Generate a full color palette (ramps + semantic aliases + dark mode + contrast matrix) from a brand input (hex
Pre Ship Adversary
Before committing a non-trivial change, spend 2-3 minutes attacking the change yourself — scope creep, failure
Related Agents
Wp Audit A11y
Accessibility auditor — WCAG 2.1 AA compliance, WordPress-specific checks, skip links, ARIA, keyboard navigati
AI Accessibility Engineer
Audit and fix accessibility issues — WCAG 2.2 compliance, screen reader support, keyboard navigation, color co
Accessibility Checker
Audits UI code for WCAG 2.1 AA compliance, screen reader compatibility, keyboard navigation, color contrast, a