color-tokens
从单一强调颜色生成可访问的颜色令牌。当用户想要创建或更新调色板、检查可访问性对比度或生成温暖/凉爽的自适应灰度时使用。
📖 中文导读:从单一强调颜色生成可访问的颜色令牌。当用户想要创建或更新调色板、检查可访问性对比度或生成温暖/凉爽的自适应灰度时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: color-tokens description: Generate accessible color tokens from a single accent color. Use when user wants to create or update color palettes, check accessibility contrast, or generate warm/cool adaptive gray scales. allowed-tools: Read, Write, Edit, Bash
Generate Color Tokens
Generate accessible color tokens from a single accent color following Dieter Rams' "Less, but better" philosophy.
Usage
- Ask user for the accent color (hex format, e.g.,
#ed8008) - Run:
node .claude/skills/color-tokens/generate.js "#hexcolor" - Review output with user
- Update
src/styles/tokens.csswith new values
What It Generates
- 10 adaptive grays that harmonize with the accent (warm/cool/neutral)
- Accessible text color for the accent (light or dark based on APCA contrast)
- CSS custom properties ready to paste
- Accessibility contrast checks
Example
node .claude/skills/color-tokens/generate.js "#ed8008"