返回 Skill 列表
extension
分类: 开发与工程无需 API Key

color-tokens

从单一强调色生成可访问的颜色标记。当用户想要创建或更新调色板、检查无障碍对比度或生成暖/冷自适应灰度时使用。

person作者: jakexiaohubgithub

Generate Color Tokens

Generate accessible color tokens from a single accent color following Dieter Rams' "Less, but better" philosophy.

Usage

  1. Ask user for the accent color (hex format, e.g., #ed8008)
  2. Run: node .claude/skills/color-tokens/generate.js "#hexcolor"
  3. Review output with user
  4. Update src/styles/tokens.css with 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"