Works with the AI Agents you already use

    Accessible Colour Palettes, Dark Mode & Contrast Fixer

    by Alex

    1

    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.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    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 asking: “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 asking: “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 asking: “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 asking: “Make #60a5fa pass as link text on white.”

    Accessible Colour Palettes, Dark Mode & Contrast Fixer

    Accessible Colour Palettes, Dark Mode & Contrast Fixer

    Example session with this skill installed

    Make an accessible light and dark palette from my brand colour #2563eb, as CSS and Tailwind.

    • Read your context and instructions
    • Compiled the accessible colour palettes
    • Generated the UI component

    **Both themes pass** ## light: 34 of 34 constraints hold across 21 tokens | Token | Tightest against | Needs | Achieved | Solve | | --- | --- | --- | --- | --- | | text-primary | surface-0 | 4.50:1 | 12.00:1 | target 12:1 | | text-secondary | surface-0 | 4.50:1 | 7.00:1 | target 7:1 | | text-muted | surface-0 | 4.50:1 | 4.60:1 | target 4.6:1 | | success-fg | success-bg | 4.50:1 | 4.60:1 | target 4.6:1 | | warning-fg | warning-bg | 4.50:1 | 4.60:1 | target 4.6:1 | | danger-fg | danger-bg | 4.50:1 | 4.60:1 | target 4.6:1 | | info-fg | info-bg | 4.50:1 | 4.60:1 | target 4.6:1 | | on-accent | accent-app | 4.50:1 | 5.16:1 | fixed | | accent-app | surface-0 | 4.50:1 | 4.85:1 | kept as given | | accent-app-on-muted | accent-app-muted | 4.50:1 | 6.35:1 | target 4.6:1 | | border-strong | surface-0 | 3.00:1 | 3.05:1 | target 3.05:1 | ## dark: 34 of 34 constraints hold across 21 tokens | Token | Tightest against | Needs | Achieved | Solve | | --- | --- | --- | --- | --- | | text-primary | surface-2 | 4.50:1 | 12.00:1 | target 12:1 | | text-secondary | surface-2 | 4.50:1 | 7.00:1 | target 7:1 | | text-muted | surface-2 | 4.50:1 | 4.60:1 | target 4.6:1 | | success-fg | success-bg | 4.50:1 | 4.88:1 | target 4.6:1 | | warning-fg | warning-bg | 4.50:1 | 4.68:1 | target 4.6:1 | | danger-fg | danger-bg | 4.50:1 | 4.60:1 | target 4.6:1 | | info-fg | info-bg | 4.50:1 | 4.73:1 | target 4.6:1 | | on-accent | accent-app | 4.50:1 | 5.60:1 | fixed | | accent-app | surface-2 | 4.50:1 | 4.60:1 | target 4.6:1 | | accent-app-on-muted | accent-app-muted | 4.50:1 | 5.52:1 | target 4.6:1 | | border-strong | surface-2 | 3.00:1 | 3.05:1 | target 3.05:1 | **Wrote** - tokens/tokens.css - tokens/tokens.tailwind.css Import tokens.css, then tokens.tailwind.css, at the root of your styles. Your blue #2563eb is kept as given in light. In dark it is too dark to read on the dark surfaces, so it was solved lighter.

    tokens.css

    TSX · React component

    Generated

    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

    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.

    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.

    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

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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 2 days ago

    Software
    Node.js 22.13+npm (npx)@polykinesis/oklch-solver-clicommanddownloads

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access

    Allowed Hosts

    registry.npmjs.org

    File Scopes

    oklch-solver.json
    tokens/
    the
    project's
    stylesheet
    (e.g.
    globals.css)
    pairs.json
    and
    globals.fixed.css
    beside
    it
    components/ui/button.tsx
    (shadcn/ui
    with
    user's
    yes)

    npx downloads @polykinesis/oklch-solver-cli@0.2.0 from npm on first use. The CLI itself makes no network requests and reads no environment variables.

    Listed2 days ago

    What's inside

    Creator

    Alex

    Alex

    2 skills on Agensi

    Frequently Asked Questions

    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.

    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.

    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.

    New in UX & UI Design

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for UX & UI Design.