- Home
- Skills
- Frontend & Web Apps
- Enforce DESIGN.md Tokens and Contrast Across UI Code
More screenshots
Works with the AI Agents you already use
Enforce DESIGN.md Tokens and Contrast Across UI Code
For developers building product screens with Claude Code, finish each UI change knowing whether its colors, type, spacing, and contrast stay aligned with your design system.
$19
Enforce DESIGN.md Tokens and Contrast Across UI Code
Example session with this skill installed
Run python3 scripts/design_token_guard.py --design examples/DESIGN.md --project examples --format text and show me the drift findings.
- Read your context and instructions
- Compiled the enforce design md
- Generated the UI component
examples/ui.css:8: color-outside-palette [#777777] — Use a color token from DESIGN.md.
examples/ui.css:10: font-outside-design [Arial, sans-serif] — Use a font family listed in DESIGN.md.
examples/ui.css:11: spacing-undefined [11px] — Use a spacing value listed in DESIGN.md.
examples/ui.css:8: contrast-below-4.5 [4.48:1] — Choose colors with at least 4.5:1 contrast (3:1 for large text).
ui.css
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
For developers building product screens with Claude Code, finish each UI change knowing whether its colors, type, spacing, and contrast stay aligned with your design system.
Turn a local DESIGN.md into CSS or Tailwind tokens, then scan HTML, CSS, TSX, and JSX for line-level drift.
The included Python CLI reports out-of-palette colors, unsupported fonts, spacing drift, and low contrast, with a suggested correction for each finding.
Quick start
python3 scripts/design_token_guard.py --design examples/DESIGN.md --project examples --format text
Output formats: text, JSON, CSV, CSS variables, or a Tailwind theme extension. It uses only Python's standard library.
Limits
The contrast checker pairs explicit color and background hex declarations within a simple CSS rule. It does not evaluate CSS variables, alpha colors, images, or computed browser styles. Source files must be UTF-8.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
The contrast checker pairs explicit color and background hex declarations within a simple CSS rule. It does not evaluate variables, alpha colors, images, or computed browser styles. Source files must be UTF-8. Requires python3 (standard library only).
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python 3