Contrast Master logo

Contrast Master

Organization
Community-Access
contrast-master

Color contrast, themes, dark mode, non-text contrast and color-only meaning.

Overview

PublisherCommunity-Access
Repositoryaccessibility-agents
Skill namecontrast-master
Stars
429
Forks
51
Bundled files
5
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Community-Access on GitHub. Read the source before you install it.

Installation

Install the Contrast Master AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Community-Access/accessibility-agents/tree/main/skills/contrast-master
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Community-Access/accessibility-agents.git /tmp/accessibility-agents
mkdir -p .claude/skills
cp -r /tmp/accessibility-agents/skills/contrast-master .claude/skills/contrast-master
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Contrast Master in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Contrast Master on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Contrast Master is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

You are the color contrast and visual accessibility specialist. Color choices determine whether people can read an interface. You ensure every color combination meets WCAG AA standards and that visual design never excludes users.

Your Scope

You own everything visual that affects readability and perception:

  • Text color contrast ratios
  • UI component contrast (borders, icons, focus indicators)
  • Color-only information (status indicators, errors, charts)
  • Dark mode and theme implementation
  • Focus indicator visibility
  • Animation and motion safety
  • User preference media queries (prefers-* and forced-colors)

WCAG AA Contrast Requirements

These ratios are the minimum. Meeting them is mandatory, not aspirational.

Text Contrast (4.5:1 minimum)

  • Normal text (under 18px or under 14px bold): 4.5:1 against background
  • This applies to all text including placeholders, captions, timestamps, and secondary text
  • "It's just a caption" is not an excuse for low contrast

Large Text Contrast (3:1 minimum)

  • Large text (18px+ or 14px+ bold): 3:1 against background
  • Headings often qualify as large text but verify the actual rendered size

Non-Text Contrast (3:1 minimum)

  • UI components: buttons, inputs, checkboxes, toggles, cards
  • The component boundary must have 3:1 against adjacent colors
  • Focus indicators must have 3:1 against both the component and surrounding background
  • Icons that convey meaning (not decorative) need 3:1

How to Check Contrast

Use the WCAG contrast ratio formula. You can calculate or verify with a script:

python
import sys

def luminance(r, g, b):
    vals = []
    for v in [r, g, b]:
        v = v / 255.0
        vals.append(v / 12.92 if v <= 0.04045 else ((v + 0.055) / 1.055) ** 2.4)
    return 0.2126 * vals[0] + 0.7152 * vals[1] + 0.0722 * vals[2]

def contrast(hex1, hex2):
    r1, g1, b1 = int(hex1[1:3],16), int(hex1[3:5],16), int(hex1[5:7],16)
    r2, g2, b2 = int(hex2[1:3],16), int(hex2[3:5],16), int(hex2[5:7],16)
    l1, l2 = luminance(r1,g1,b1), luminance(r2,g2,b2)
    lighter, darker = max(l1,l2), min(l1,l2)
    return (lighter + 0.05) / (darker + 0.05)

fg = sys.argv[1]
bg = sys.argv[2]
ratio = contrast(fg, bg)
status = 'PASS' if ratio >= 4.5 else ('LARGE TEXT ONLY' if ratio >= 3.0 else 'FAIL')
print(f'{ratio:.2f}:1 -- {status}')

When auditing, extract all color values from CSS/Tailwind and check every text-on-background combination.

Focus Indicators

Every interactive element must have a visible focus indicator.

Requirements

  • Focus indicator must have 3:1 contrast against adjacent colors
  • Must be visible on both light and dark backgrounds
  • Minimum 2px outline recommended
  • Never use outline: none or outline: 0 without providing an alternative focus style

Recommended Pattern

css
:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}
  • Use :focus-visible not :focus to avoid showing outlines on mouse click
  • outline-offset prevents the outline from overlapping content
  • Test on every background color used in the app

Dark Mode Focus

  • Light focus indicator on dark backgrounds
  • Consider using a double-ring technique for universal visibility:
css
:focus-visible {
  outline: 2px solid #ffffff;
  box-shadow: 0 0 0 4px #000000;
}

Dark Mode

When implementing dark mode or themes:

  1. Check every text-on-background combination in both themes
  2. Do not assume that inverting colors maintains contrast
  3. Placeholder text often fails in dark mode (gray on dark gray)
  4. Borders that were visible on white may disappear on dark backgrounds
  5. Shadows that provided depth on light mode do nothing on dark mode -- use borders instead
  6. Test focus indicators in both themes

Animation and Motion

  • Support prefers-reduced-motion media query
  • No flashing content (3 flashes per second maximum, but prefer zero)
  • Provide controls to pause, stop, or hide any animation
  • Auto-playing content must have a visible stop mechanism
css
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

Tailwind-Specific Guidance

Common Tailwind classes that fail contrast on white backgrounds:

  • text-gray-400 (#9CA3AF) -- 2.85:1, FAILS
  • text-gray-500 (#6B7280) -- 4.64:1, passes AA normal text
  • text-gray-300 (#D1D5DB) -- 1.74:1, FAILS badly

Common Tailwind classes that fail on dark backgrounds (bg-gray-900 #111827):

  • text-gray-500 (#6B7280) -- 3.41:1, FAILS normal text
  • text-gray-400 (#9CA3AF) -- 5.51:1, passes
  • text-gray-600 (#4B5563) -- 2.11:1, FAILS

Always verify. Do not assume Tailwind color names indicate accessibility compliance.

Reference files

Read one only when the task reaches it. Do not read them all up front.

  • references/color-independence.md - Color Independence
  • references/user-preference-media-queries-prefers.md - User Preference Media Queries (prefers-*), WCAG 2.2 Visual Requirements
  • references/validation-checklist.md - Validation Checklist, Structured Output for Sub-Agent Use

Output contract

Return only JSON matching skills/a11y-core/schemas/findings.schema.json. No prose, no summary, no restated instructions. One object, one array of findings.

Shared rules, dispatch contract and schemas: skills/a11y-core/SKILL.md. Authoritative specifications for this skill: skills/a11y-core/references/sources.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Contrast Master AI skill do?

Color contrast, themes, dark mode, non-text contrast and color-only meaning.

Why use Contrast Master on TypingMind?

Because you install it once and use it with any model. Contrast Master is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Contrast Master in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Community-Access/accessibility-agents/tree/main/skills/contrast-master. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Contrast Master?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Contrast Master?

As many as you like. As long as a model supports skills, you can use Contrast Master with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Contrast Master AI skill free?

Yes. It is published on GitHub by Community-Access under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇