color-system-design

Construct accessible color palettes and semantic tokens for light and dark themes.

1|Updated May 6, 2026
One-click install
npx skills add https://github.com/jacob-balslev/skill-graph --skill color-system-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: color-system-design
Source: https://github.com/jacob-balslev/skill-graph/tree/main/marketplace/skills/color-system-design
Command: npx skills add https://github.com/jacob-balslev/skill-graph --skill color-system-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents inconsistent, non-accessible color palettes by guiding the construction of perceptually uniform scales and semantic tokens that keep working across light and dark themes.

Core Features & Use Cases

  • Perceptually uniform palette construction: Generates color scales using OKLCH/LCH so equal step indices map to more equal perceived lightness changes.
  • Semantic token mapping for components: Defines tokens by intent (e.g., background-surface, text-primary, danger-emphasis) and resolves them per theme rather than hard-coding appearances.
  • Accessibility verification for real pairs: Ensures token pairings meet WCAG 2.1 contrast minima (and can incorporate APCA-aware checks) across both light and dark surfaces.

Quick Start

Use this skill to audit an existing palette for WCAG contrast failures and propose minimal, semantically consistent OKLCH-based adjustments for both light and dark themes.

Frequently Asked Questions about color-system-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an accessible color palette that stays consistent across light and dark themes?

Build an accessible color palette by constructing perceptually uniform OKLCH color scales and mapping them to semantic tokens that resolve independently per theme. This ensures visual consistency and meets WCAG 2.1 contrast minima across both modes.

What are semantic color tokens and how do they work for UI theming?

Semantic color tokens define UI colors by intent, such as background-surface or text-primary, rather than hardcoded values. This abstraction allows the same token to resolve to different OKLCH values depending on the active light or dark theme.

How do I check WCAG contrast ratios for semantic token pairs in my design system?

Check WCAG contrast ratios by auditing semantic token pairings, like text on background, against both light and dark surfaces. The process verifies that token combinations meet WCAG 2.1 contrast minima and can incorporate APCA-aware checks.

Why use OKLCH for generating color scales instead of standard RGB or HSL?

Use OKLCH for generating color scales because it provides perceptual uniformity, meaning equal numeric steps map to equal perceived lightness changes. Standard RGB and HSL lack this perceptual consistency, causing uneven visual transitions.

What's the best way to fix failing contrast issues in an existing UI color palette?

Fix failing contrast issues by auditing the existing palette for WCAG failures and proposing minimal, semantically consistent OKLCH-based adjustments. This corrects both light and dark theme mappings while maintaining deterministic naming for development.

Can I audit my existing color palette for accessibility without rebuilding my entire design system?

You can audit an existing color palette for accessibility without a full rebuild by checking specific token pairings against WCAG 2.1 contrast minima. The system proposes minimal OKLCH adjustments to resolve failures while keeping current semantic mappings intact.