# Accessible Colour Palettes, Dark Mode & Contrast Fixer

> Get light and dark themes of colour tokens that pass WCAG 2.2 contrast, and fix the failing colours in a theme you already have.

Accessible Colour Palettes, Dark Mode & Contrast Fixer is a paid AI agent skill on Agensi by Alex, in UX & UI Design. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Alex](https://www.agensi.io/creators/alex-17)
- Category: [UX & UI Design](https://www.agensi.io/skills/ux-ui-design)
- Version: 0.2.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/accessible-colour-palettes-dark-mode-contrast-fixer
- Tags: ui-ux, accessibility, css, web-design, wcag

## What it does

- Builds light and dark themes of colour tokens from your brand colours
- Writes them as CSS, Tailwind v4 classes, shadcn/ui's names or design-token files
- Repairs the failing colours in your existing theme while keeping its look
- Finds the nearest passing version of one colour on a given background
- Shows a report with the contrast each colour needs and the contrast it gets

## Who it's for

- **Developers on shadcn/ui and Tailwind 4:** Swap shadcn's default colours for a solved palette, light and dark, that its components use unchanged. Try: "Replace the colours in my shadcn globals.css with an accessible palette from #2563eb."
- **Teams with a theme that fails contrast checks:** Fix the pairs Lighthouse flagged with the smallest change, in a copy you can review first. Try: "Lighthouse says my colours fail contrast. Fix app/globals.css and keep the look."
- **Founders adding dark mode:** Get a dark theme that is solved for readability, not just inverted from the light one. Try: "Add an accessible dark theme to my site, brand colour #0f766e."
- **Designers with a brand colour that fails:** Get the closest passing version of a colour, keeping its hue, with the ratio it reaches. Try: "Make #60a5fa pass as link text on white."

## About this skill

This is the full version of the free Accessible Colour Palette & WCAG Contrast Checker. It does everything that skill does, and adds dark themes, Tailwind and design-token output, and repairs.

A small command-line tool does the colour maths. Your AI agent runs it and passes on the report it prints, so every number you see was computed and checked, not estimated.

**What you can ask for**
- **Light and dark palettes from your brand colour.** The dark theme is solved against the dark surfaces, not just inverted, so each colour gets its own readable lightness.
- **Your output format:** CSS custom properties, Tailwind v4 classes, shadcn/ui's own variable names so its components keep working, or design-token files for Style Dictionary and similar tools.
- **Repairs to the theme you already have.** It finds the pairs that fail, moves each failing colour only as far as it must, and writes the result to a copy beside your file. Your original stays unchanged until you say so.
- **One colour made to pass.** Give a colour and a background and get the nearest version that passes, with the same hue.
- **shadcn's faint focus ring.** It explains the trade-off and adds a solid-outline rule only if you agree.

Your brand colour is kept as given wherever it already passes. If it falls short, often in dark mode, the report tells you where and by how much it moved.

## Requires

- Node.js 22.13+
- npm (npx)
- @polykinesis/oklch-solver-cli
- command
- downloads

## Known limitations

The stylesheet check reads one file and does not follow @import. Colours hard-coded in components, such as text-white, and translucent hover states such as hover:bg-primary/90 are not graded. Tailwind 3 gets CSS custom properties only, which you map in tailwind.config.js yourself. It does not switch themes with the operating system: your own script toggles the dark class or attribute.

## Technical details

Runs the pinned CLI @polykinesis/oklch-solver-cli@0.2.0 through npx, with a product key the skill carries that unlocks dark themes, Tailwind v4 and DTCG output, fit and check --fix. npx downloads the CLI from the npm registry on first use. The CLI makes no network requests of its own and reads no environment variables. Needs Node 22.13 or later. Writes oklch-solver.json, tokens/tokens.css, tokens/tokens.tailwind.css and optional light/dark .tokens.json (DTCG). For an existing theme it writes pairs.json and a repaired copy (globals.fixed.css) beside the stylesheet, never changing the original. With the user's yes it edits globals.css and components/ui/button.tsx when moving a shadcn/ui project onto solved tokens. Contrast follows WCAG 2.2 and ratios are floored rather than rounded.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Accessible Colour Palettes, Dark Mode & Contrast Fixer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Accessible Colour Palettes, Dark Mode & Contrast Fixer do?

Get light and dark themes of colour tokens that pass WCAG 2.2 contrast, and fix the failing colours in a theme you already have.

### Which AI agents support Accessible Colour Palettes, Dark Mode & Contrast Fixer?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Accessible Colour Palettes, Dark Mode & Contrast Fixer?

Connect your AI agent to Agensi through MCP, then ask it to use Accessible Colour Palettes, Dark Mode & Contrast Fixer on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
