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.5 $0.00026 $0.00255
Sonnet 5.5 $0.00013 $0.00128
Haiku 4.5 $0.00006 $0.00064

Measured 3mo ago against content hash f4b73dbd4e49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (11 stars, last pushed 2d ago), licensed MIT. It adds 65 tokens to every session and 638 once invoked, about $0.0003 per session on Opus 5.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

color-contrast compared with skills from other repositories

color-contrast next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
color-contrastAbdullah4AI/apple-developer-toolkitSkill112d agoMITA65Claude Code, Codex
webgl-holographic-foilnexu-io/open-designSkill111ktodayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill111ktodayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill111ktodayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k2d agoMITA52Codex
glance-canonical-layoutsandroid/skillsSkill11k10d agoApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.7ktodayMITA47Claude Code