
ColorwayKit
io.github.5zjk5由 GitHub 帳號 5zjk5 發布v1.0.0更新於 Oct 24, 2026
Verified color tokens for AI coding agents: one brand hex in, WCAG/APCA-measured themes out.
概覽
ColorwayKit 將一個品牌十六進位色產生經過驗證的明暗配色主題,讓助理產出帶實測對比度的顏色權杖並檢查配色對。
- 可以做什麼
- 由單一品牌色產生包含 23 個語意角色的完整明暗主題,並提供每組配色的 WCAG 2.1 與 APCA 對比度實測值。即時驗證任意文字與背景配色對。讀取已儲存的雲端專案主題,並依最新優先列出已儲存專案。
- 適用情境
- 適合 AI 編碼助理撰寫介面時需要一套一致且可存取的調色盤、而非自行臆測顏色的情境,也適合在開發過程中檢查特定文字與背景配色對的對比度。
- 執行需求
- 透過 streamable HTTP 連線 colorwaykit.com 遠端端點並使用 OAuth;需要 ColorwayKit 帳號及產生的代理權杖,以 Authorization Bearer 標頭傳送。依帳號計量:免費版每日 5 次,Plus 每月 1,000 次,Pro 不限量。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 ColorwayKit,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.5zjk5%2Fcolorwaykit/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"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).
來源:README.md,提交 cdedeba
工具
0版本歷史
1- v1.0.0最新Oct 14, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分