
ColorwayKit
io.github.5zjk5Published by GitHub account 5zjk5v1.0.0Updated Oct 24, 2026
Verified color tokens for AI coding agents: one brand hex in, WCAG/APCA-measured themes out.
Overview
ColorwayKit turns one brand hex into a verified light and dark color theme, letting an assistant generate measured color tokens and check contrast pairs.
- What you can do
- Generate a full light and dark theme with 23 semantic color roles from a single brand hex, with WCAG 2.1 and APCA contrast measurements per pair. Validate any text/background color pair on the fly. Retrieve a saved cloud project's theme and list your saved projects, newest first.
- When to use it
- Useful when an AI coding agent writes UI and needs a consistent, accessible palette instead of inventing colors, or when you want contrast checks on specific text/background pairs during development.
- Requirements
- Remote endpoint at colorwaykit.com over streamable HTTP with OAuth; a ColorwayKit account and a generated agent token sent as an Authorization Bearer header. Usage is metered per account: Free 5 calls/day, Plus 1,000/month, Pro unlimited.
Installation
In SourceWeft
- Open ColorwayKit in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.5zjk5%2Fcolorwaykit/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"colorwaykit": {
"type": "http",
"url": "https://www.colorwaykit.com/api/mcp"
}
}
}README
ColorwayKit for Agents
Give your AI coding agent a brand's color system it can actually follow.
[License: MIT] [Website] [MCP endpoint]
ColorwayKit turns one brand color into a complete, accessible light & dark web theme — 23 semantic roles, WCAG 2.1 + APCA contrast checks, and exports you can paste straight into a project.
- Website: https://www.colorwaykit.com
- Build a theme and export it: https://www.colorwaykit.com/brand
The problem this solves
Coding agents write working UI but invent colors: a blue button here, a different grey there, and a contrast ratio nobody checked. Re-describing your palette in every prompt doesn't scale.
DESIGN.md is an open format, adopted by AI coding tools, that puts a design system in one plain-text file: YAML design tokens (machine-readable values) plus a Markdown body (when and why to use them). Drop it in your project root and the agent reads it instead of guessing.
This repository collects the templates and an example we generate with ColorwayKit, so you can wire that file into the agents you already use.
Two ways to feed your agent
Both are free with a ColorwayKit account. Pick one, or use files as the versioned source and MCP as the live interface.
Option A: MCP server (live)
-
Create a free account at colorwaykit.com, then My Projects → Agent tab → Generate token.
-
Connect (Claude Code example):
-
Ask your agent: "list the color tokens for #4F46E5" — if it replies with named roles and measured contrast numbers, you are connected. Full setup for Cursor / Codex / Gemini CLI: https://www.colorwaykit.com/mcp
Tools: get_theme (one hex → full verified light & dark theme),
check_pair (validate any text/background pair on the fly),
get_theme_by_project (your saved cloud project),
list_projects (enumerate your saved projects, newest first).
Option B: the file way (quick start)
- Open the Brand Theme Engine and paste your brand hex (from your logo or guidelines).
- Go to the Take it to dev tab and copy or download
DESIGN.md. It is a free export format, alongside CSS variables, Tailwind config, Tokens Studio JSON and W3C DTCG tokens. - Save it as
DESIGN.mdin your project root. - Point your agent at it — see
templates/.
What the exported file contains
colorsin YAML front matter: semantic roles for both themes (primary,on-primary,surface,on-surface,outline,error, …), with dark-theme roles prefixeddark-.componentsthat reference those colors with{colors.x}syntax, so one change propagates.- A Markdown
Colorssection listing a measured result for every text/background pair: WCAG 2.1 ratio against its threshold, plus APCALcagainst the use-case threshold. Pairs that fail are marked as failing — the file reports what the tool computed, nothing more. typography,roundedandspacingare declaredomitted: the color engine has no measured values for them, so they stay with your framework's defaults rather than being invented.
See examples/DESIGN.md — generated from the brand color
#4F46E5 by ColorwayKit, not hand-written.
Templates
Each template only describes how to consume DESIGN.md. Copy one into your
project and adapt the paths. Every template now ships with an executable
verification step — see below.
Verify with the linter (CLI)
Keep new colors honest with the companion checker — wild-color scan plus WCAG 2.1 pair validation, exit codes for CI. It ships in this repo — runs with Node 18+, no install:
Exit 0 = clean; exit 1 = wild hex values or failing pairs. Add --apca to also
report APCA Lc per pair. Source lives in cli/ — wire it into a CI
step so new colors go through the file first.
Already have extracted colors?
If you came from a DevTools inspection or an extraction tool, your hex list has
no roles and no measurements yet. The migration guide walks it the last mile:
docs/migration-extracted-css.md — raw hex
→ semantic roles → measured pairs → a formal DESIGN.md, with a real worked
example (including a pair that genuinely fails).
FAQ
Where do the templates live? In this repository — free to copy. The DESIGN.md format itself is specified by Google Labs (Apache-2.0).
Do they work outside Claude Code? Yes. Templates are plain Markdown:
.cursorrules for Cursor, AGENTS.md for Codex and most agents, SKILL.md
for skill-aware clients.
Do I need both a skill and the MCP server? They compose. The file is the versioned contract your team ships; MCP is the live measurement tool that validates pairs and pulls freshly tuned themes on demand.
Is everything free? The templates, the Brand Theme Engine and the contrast checker are free. The MCP server is metered per account: Free 5 calls/day, Plus 1,000/month, Pro unlimited.
Notes and limits
- DESIGN.md is specified by Google Labs and licensed Apache-2.0 at google-labs-code/design.md. ColorwayKit is not the spec's author — we export to it.
- The specification is at an early version and describes parts of itself as evolving; component token structures may change.
- Contrast values are computed automatically and are a design reference, not a formal accessibility certification.
- The ColorwayKit engine covers color. Fonts, spacing and radii in the generated file are yours to define.
License
The templates and example in this repository are provided for practical use in your own projects. The DESIGN.md format itself is governed by its own specification and license (see the link above).
Source: README.md at commit cdedeba
Tools
0Version history
1- v1.0.0LatestOct 14, 2026
Score
85% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts