◎Home
← All posts

Claude Code Skills for Brand Colors: Stop Re-Explaining Your Palette to Your Agent

2026-10-07 · zhoujingkang · Founder

Ask your agent to style a settings page and watch what happens without a brand system in context: it invents a blue it used on another project, pairs it with a gray that fails contrast, and ships both before anyone measures anything. A skill fixes the root cause — a small Markdown file the agent loads on its own that carries your DESIGN.md contract: named color roles, real values, and the rule that every pairing gets measured. This article covers the free ColorwayKit skills, a three-step setup for Claude Code and Cursor, and when to pair a skill with the live MCP server.

What is a ColorwayKit skill?

A skill is an instruction file your coding agent reads by itself — no copy-pasting context into every conversation. In Claude Code it lives in the repo as Markdown the agent loads alongside your code; Cursor and Codex read the equivalent rules files. The content is what matters: a DESIGN.md contract that lists 23 named color roles for light and dark mode, the hex value for each, and the rule that no text/background pair ships unmeasured.

That last part is the difference between a style guide nobody opens and a system the agent actually follows. "Use our brand orange for primary" is a suggestion; "primary is #EA580C, and anything you put on top of the page background must pass the ratio you can check with check_pair" is a contract with a number attached.

What comes in the template pack?

The colorwaykit-for-agents repository on GitHub is free and holds the current set: a DESIGN.md template with the full token contract and the WCAG 2.1 / APCA measurement rules, lighter variants for smaller repos that only need the essentials, and a worked example generated from a real brand hex so you can see a filled-in file before you commit one. Everything is plain Markdown — no build step, no lock-in, diff-friendly.

Copy the template closest to your setup, adapt the paths, and it is live for every agent that reads your repo. When your brand evolves, you regenerate the values on the site and commit the diff like any other file.

How do I set it up in Claude Code or Cursor?

Three steps, about five minutes:

  • Copy a template from the GitHub repo into your project — as a Claude Code skill in .claude/skills, as .cursorrules for Cursor, or as the repo-level AGENTS.md both tools read.
  • Generate your theme: paste the brand hex from your logo or guidelines into the Brand Theme Engine, tune the light and dark variants, export the DESIGN.md.
  • Reload and ask your agent "what is our primary color?" — the right answer is the role name, the hex and its measured ratio, not a guess.

Skills or MCP — which one do I need?

They are two halves of one system, and they compose:

  • Skills (file): the contract is versioned with your code, works offline, and applies to every teammate and every CI run — best as the default source of truth.
  • MCP (live): the agent pulls the current engine output mid-task, validates a color pair it just invented, and reads cloud projects you tuned in the browser — best for checking work as it happens.
  • Recommended setup: keep the skill as the contract, connect the MCP server as the measurement tool. The file tells the agent what to do; MCP lets it prove the result.

What actually changes once the skill is loaded

The measurable difference shows up in review. Without a contract, an agent asked for "a muted label on a cream panel" picks #A89890 on #FFF7F3 — which measures 2.63:1 against the 4.5:1 body-text threshold, APCA Lc 49.7. Both fail, and nothing in a prompt-only workflow ever catches it.

With the skill loaded and MCP connected, the agent checks the pair before it lands: check_pair returns the failing numbers plus #7d6e67, a fix that keeps the hue and just clears 4.5:1. The label ships accessible on the first pass instead of the second review.

Keeping the skill in sync with your brand

A skill is only as good as the values in it. When the brand evolves, regenerate the theme in the Brand Theme Engine, export a fresh DESIGN.md, and commit the diff — the change is reviewable line by line. The MCP server always reads the latest engine output, so the live checks never lag behind the rebrand even before you update the file.

Continue with a tool

References

FAQ

Where do the ColorwayKit skill templates live?

In the free colorwaykit-for-agents repository on GitHub, alongside a real generated example. The skills page links to it and walks through the setup.

Do skills work outside Claude Code?

Yes. The templates are plain Markdown — Cursor reads .cursorrules, Codex reads AGENTS.md, and the DESIGN.md contract itself is tool-agnostic. The live MCP server works with any client that supports Streamable HTTP.

Do I need both a skill and the MCP server?

They compose, and the combination is the recommended setup: the skill is the versioned contract your team ships, the MCP server is the live measurement tool that validates pairs and pulls freshly tuned themes on demand.

How much does all of this cost?

The templates are free. The Brand Theme Engine and the contrast checker are free to use. The MCP server comes with a free account — 5 calls per day on Free, 1,000 per month on Plus, unlimited on Pro.

Try it on your own brand color

Paste one hex into the Brand Theme Engine and get a full light & dark web theme — semantic tokens, contrast-checked, export-ready.

Open the Brand Theme Engine →