esyion

China Color Palette — Development skill for Claude Code

Development community

中国传统色彩配色SKILL.

How to install China Color Palette

This entry records only its repository, not the path inside it, so there is no exact command to give. Open esyion/china-color-palette and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What China Color Palette does

中国传统色彩配色SKILL。根据用户场景描述自动生成符合中国传统审美的配色方案,包含传统色名、精确色值、文化典故、五行对应等。适用于品牌设计、空间设计、节日主题、传统文化项目等场景。当用户提到"中国风"、"传统色"、"古风配色"、"五行"、"朝代"、"国潮"等关键词,或需要具有中国文化特色的配色方案

Alternatives in Development

  • Openclaw China — OpenClaw中国插件:支持飞书,钉钉,QQ,企业微信,微信 4k ★
  • Mono Color Skill — One-ink editorial print image skill — warm paper, halftone photography, active negative space, and restrained 3k ★
  • Beautiful Feishu Whiteboard — 35 curated colour palette styles for building beautiful, editable Feishu / Lark (飞书) whiteboards 687 ★

README

🎨 中国传统色彩配色 China Color Palette

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Skills.sh](https://img.shields.io/badge/Skills.sh-Published-blue)](https://skills.sh)

一个 Claude / Qoder Skill:把场景需求变成**可直接落地**的中国传统色配色方案。526 色真实色库 + 确定性脚本,色值、CMYK、对比度、面积占比都由脚本计算,不靠模型估色。

A skill that turns a scenario into a production-ready Chinese traditional color palette. Color values, CMYK, contrast ratios and area splits come from bundled scripts, not from model guesses.

✨ 特性

  • 📚 526 色真实色库 — 每色含 HEX、RGB、CMYK(上游印刷值)、拼音、L*/彩度/色相、色系、五行、落位角色
  • 🧮 确定性脚本 — 检索、落地、成稿、对比度校验都由 scripts/palette.mjs 完成
  • 🏛️ 五行与朝代取色逻辑 — 归档规则公开可复算,并标明哪些是本项目约定、哪些有文献依据
  • 🎯 按媒介的面积基准 — 空间/界面/印刷/服饰各有底·主·辅·点缀比例,避免高彩度正色糊成一片
  • ♿ 可读性校验 — 自动算两两对比度,正文未达 WCAG AA 4.5:1 会直接提示换色
  • 📦 交付物 — 除方案表外还能生成 CSS 变量、Tailwind 主题、SVG 色卡
  • ✅ 一致性校验 — scripts/validate.mjs 检查文档与预设引用的每个色名都真实存在

📦 安装

npx skills add esyion/china-color-palette

或直接克隆到 skills 目录(仓库为公开仓库,用 HTTPS 即可):

# macOS / Linux
git clone https://github.com/esyion/china-color-palette.git ~/.claude/skills/china-color-palette

# Windows (PowerShell)
git clone https://github.com/esyion/china-color-palette.git "$env:USERPROFILE\.claude\skills\china-color-palette"

依赖:Node.js 18+(脚本只用内置模块,无第三方依赖)。

🚀 用法

装好后,提到「中国风 / 传统色 / 古风配色 / 国潮 / 五行 / 朝代 / 青瓷 / 漆器 / 汉服 / 文创 / 茶馆空间 / 中秋包装」等需求时会自动触发。触发后 skill 会:问清媒介与气质 → 按角色检索选色 → 文献色名走落地表 → 跑 `build` 输出方案与校验提示。

示例:

我需要一套茶馆的配色方案,要有宋代文人的雅致感觉
给我一套中秋节月饼包装的配色,要传统但不老气
设计一个国潮服装品牌,需要有冲击力,面向年轻人

直接用脚本

node scripts/palette.mjs stats                          # 色库健康度
node scripts/palette.mjs search --role 底 --li-min 85   # 找大面积底色
node scripts/palette.mjs nearest 天青                   # 文献色名 → 库内近似色
node scripts/palette.mjs presets                        # 朝代/节日/器物预设
node scripts/palette.mjs build "宋式书斋" --from-preset 宋代淡雅 --media 空间 \
  --md out/son.md --css out/son.css --svg out/son.svg --tailwind