Apply the project's DESIGN.md color tokens to any generated UI...
This project keeps its visual identity in DESIGN.md at the repository root:
YAML design tokens (normative values) plus a Markdown body (when and why to use
them).
DESIGN.md before writing any styling. The tokens are normative;
the prose explains intent. If the two disagree, follow the tokens and say so.primary,
on-primary, surface, on-surface, on-surface-variant, outline,
error โ rather than copying a hex value into a component.dark- prefix in the front
matter. Never mix a light role with a dark role inside one theme; switch the
whole set.Colors section reports a
measured WCAG 2.1 ratio and APCA Lc for each text/background pair. Do not
invent new text-on-background combinations that are absent from that list; if
you need one, compute it and flag it for review.omitted:). Use the framework's existing defaults; do not invent
values.backgroundColor, textColor,
borderColor). Padding and radius come from your component library.The same theme is exported alongside DESIGN.md as CSS custom properties
(--color-<role>), a Tailwind config, Tokens Studio JSON and W3C DTCG tokens.
When wiring colors up, keep the role names identical across formats so
{colors.primary} in this file maps to --color-primary /
theme.colors.primary / semantic.light.primary in yours.
Regenerate DESIGN.md from the ColorwayKit Brand Theme Engine
(https://www.colorwaykit.com/brand) rather than hand-editing hex values. Hand
edits bypass the recorded contrast measurements.
After adding or changing any color, verify with one of these โ do not rely on how the output looks:
CLI (offline, CI-ready):
npx colorwaykit-lint --tokens DESIGN.md --target .
Exit 0 = clean; exit 1 = wild hex values or failing pairs. Add --apca to
also report APCA Lc per pair. Wire it into CI so new colors go through the
file first.
MCP tool (live): with the ColorwayKit MCP server connected, call
check_pair with any fg/bg hex before using the pairing.
Prefer a live interface over the file? Connect the ColorwayKit MCP server:
claude mcp add --transport http colorwaykit https://www.colorwaykit.com/api/mcp --header "Authorization: Bearer ck_YOUR_TOKEN"
Get the token from colorwaykit.com โ My Projects โ Agent tab (free account).
Tools: get_theme (one hex โ full verified theme), check_pair (validate any
pair on the fly), get_theme_by_project. Quota: Free 5 calls/day ยท Plus
1,000/month ยท Pro unlimited. Details: https://www.colorwaykit.com/agents