color-tokens

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.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 8, 2025

When & Why to Use This Skill

This Claude skill automates the creation of accessible design systems by generating a comprehensive set of color tokens from a single accent color. It streamlines the UI design process by producing harmonized adaptive gray scales and CSS custom properties that adhere to APCA contrast standards, ensuring both aesthetic elegance and web accessibility compliance.

Use Cases

  • Design System Bootstrapping: Rapidly generate a full palette of 10 adaptive grays and accent tokens when starting a new project to ensure visual consistency.
  • Accessibility Auditing and Optimization: Use the skill to check existing brand colors against contrast standards and generate accessible text-color pairings automatically.
  • Theme Development: Create warm, cool, or neutral adaptive themes for web applications by simply providing a primary brand hex code.
  • Developer Handoff: Generate ready-to-paste CSS custom properties that bridge the gap between brand identity and frontend implementation.
namecolor-tokens
descriptionGenerate 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-toolsRead, Write, Edit, Bash

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"