color-contrast

color-contrast is a skill for Claude Code, Codex from Abdullah4AI/apple-developer-toolkit. It costs 65 tokens per session (638 once invoked), scanned A, original, MIT.

A guide to choosing readable colors and checking contrast for text, controls, icons, images, and dark mode.

In plain words
What is it for?
Use it when selecting semantic colors, styling text over images, supporting light and dark themes, or checking WCAG contrast.
Why use it?
It helps prevent hard-to-read interfaces and avoids relying on color alone to communicate status or errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when selecting semantic colors, styling text over images, supporting light and dark themes, or checking WCAG contrast.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdullah4ai/apple-developer-toolkit/color-contrast
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Abdullah4AI/apple-developer-toolkit --skill color-contrast
Clone the repo
git clone --depth 1 https://github.com/Abdullah4AI/apple-developer-toolkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for color-contrast

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdullah4ai/apple-developer-toolkit/color-contrast/github.svg)](https://agentmods.dev/skills/abdullah4ai/apple-developer-toolkit/color-contrast)
Your own site
<a href="https://agentmods.dev/skills/abdullah4ai/apple-developer-toolkit/color-contrast"><img src="https://agentmods.dev/badge/skills/abdullah4ai/apple-developer-toolkit/color-contrast/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for color-contrast

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullah4ai/apple-developer-toolkit/color-contrast"><img src="https://agentmods.dev/badge/skills/abdullah4ai/apple-developer-toolkit/color-contrast.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 638 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.00638
Opus 5 $0.00032 $0.00319
Sonnet 5 $0.00013 $0.00128
Haiku 4.5 $0.00006 $0.00064

Measured 5d ago against content hash f4b73dbd4e49, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

color-contrast scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

swiftship/internal/skills/data/ui/color-contrast/SKILL.md · 54 lines

What it actually says

Color & Contrast

CONTRAST RATIO REQUIREMENTS (WCAG 2.1 / Apple HIG):

  • Normal text (<20pt): minimum 4.5:1 contrast ratio.
  • Large text (20pt+ regular or 14pt+ bold): minimum 3:1 contrast ratio.
  • Preferred: 7:1 for maximum readability.
  • UI components (icons, borders, controls): minimum 3:1 against background.

SEMANTIC COLOR USAGE:

  • Red (.red / destructive): delete, remove, error, critical alert.
  • Green (.green): success, complete, enabled, positive.
  • Orange (.orange): warning, caution, attention needed.
  • Blue (.blue): informational, links, primary actions.
  • NEVER use red for positive actions or green for destructive actions.

NEVER RELY ON COLOR ALONE:

  • Status indicators: color + icon + text label (e.g. green circle + checkmark + "Complete").
  • Error fields: red border + error icon + error message text.
  • Charts/graphs: use patterns, shapes, or labels alongside color coding.
  • Colorblindness: avoid red/green as the sole differentiator — use red/blue or add shapes.

SYSTEM ADAPTIVE COLORS:

  • .primary: adapts to light/dark automatically — use for main text.
  • .secondary: lighter text for subtitles, metadata.
  • Color(.systemBackground): adapts to system appearance.
  • These work well for structural elements; use AppTheme for brand colors.

DARK MODE COLOR PAIRING:

  • Every custom color must have both light and dark variants.
  • Light mode: dark text on light backgrounds.
  • Dark mode: light text on dark backgrounds.
  • Both variants must independently meet contrast requirements.
  • Test both modes — a color that works in light may fail in dark.

APPTHEME COLOR PATTERNS:

  • Use Color(light:dark:) extension when app has appearance switching.
  • Use plain Color(hex:) when no dark mode support.
  • Define semantic tokens: AppTheme.Colors.primary, .surface, .error, .success.
  • NEVER use raw hex strings in views — always reference AppTheme tokens.

TEXT ON IMAGES/GRADIENTS:

  • Add a dark overlay (.black.opacity(0.4)) before placing white text on images.
  • Or use .shadow(color: .black.opacity(0.3), radius: 2) on text.
  • Never place light text on light images without contrast treatment.

OPACITY GUIDELINES:

  • Avoid text below .opacity(0.6) — fails contrast requirements.
  • Disabled state: use .disabled() modifier (auto-handles opacity correctly).
  • Placeholder text: use .foregroundStyle(.secondary) instead of manual opacity.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 54 lines · 65 tokens per session scan A f4b73dbd4e49

Subscribe to this mod's changes

color-contrast is a skill published in the GitHub repository Abdullah4AI/apple-developer-toolkit (10 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 638 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

make-resume

A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.

Hisn00w/ASu-skills · 86 tokens