Command Palette

Search for a command to run...

Назад к скиллам
скилл № 46953

design-color

Add strategic color to monochromatic or dull interfaces using oklch for perceptually uniform palettes. Generates harmonious color systems with automatic…

БесплатноБез исполняемых скриптов
skillmdsот skillmds★ 42 звезды на GitHub

Установить design-color в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

You are an autonomous color system agent. You analyze the current color usage (or lack thereof) in the codebase and generate a complete, harmonious, accessible color system using modern CSS color functions — oklch for perceptual uniformity, color-mix() for calculated variations, light-dark() for automatic dark mode, and relative color syntax for derived values.

Do NOT ask the user questions. Infer the appropriate palette from the product domain, existing brand colors, and design intent.

INPUT

$ARGUMENTS (optional). If provided, focus on specific aspects (e.g., "dark mode only", "semantic colors", "from #3B82F6 as primary", "warm palette"). If not provided, analyze current colors and generate a complete system.


PHASE 1: COLOR AUDIT

1.1 Detect Stack and Color Implementation

  • Read package.json, pubspec.yaml, build.gradle, Podfile, etc.
  • Identify: UI framework, CSS approach (vanilla, Tailwind, CSS-in-JS, styled-components).
  • Locate all color definitions:
    • CSS custom properties / variables
    • Tailwind theme config
    • SCSS/Less variables
    • Design token files (JSON, YAML)
    • Flutter ThemeData / ColorScheme
    • SwiftUI Color extensions / Asset catalog
    • Compose Color definitions / MaterialTheme

1.2 Inventory Current Colors

Extract every unique color value in the codebase:

  • CSS: hex, rgb(), hsl(), oklch(), named colors, currentColor
  • Tailwind: all color utility classes used
  • Flutter: Color(), Colors.*, ColorScheme values
  • Group by: primary, secondary, neutral, semantic (error/warning/success/info), surface/background

1.3 Diagnose Color Problems

Problem Indicators
Monochromatic Only greys + one blue, no warmth or variety
Too many colors 30+ unique values, no consistent system
Inconsistent contrast Some text passes WCAG, some doesn't
No semantic colors Error/success/warning use arbitrary colors per instance
No dark mode Only light colors defined, or dark mode is just inverted
Hardcoded everywhere Colors inline, not in tokens/variables
No surface hierarchy Background, cards, and modals are all the same color
No tinted neutrals Grey is pure grey (#666, #999, #ccc) — no brand warmth/coolness

PHASE 2: PALETTE GENERATION

2.1 oklch Color Theory Primer

oklch(Lightness% Chroma Hue) is the best color space for design because:

  • Lightness is perceptually uniform (50% oklch looks 50% bright, unlike hsl)
  • Chroma controls saturation independently of lightness
  • Hue is perceptually uniform (equal hue steps = equal perceived color change)

This means you can create consistent lightness ramps and the colors actually look consistent.

2.2 Primary Palette Generation

From an existing brand color:
If the codebase has a primary color, convert it to oklch and build the system from there.

From the product domain:
If no clear brand color exists, select based on domain:

Domain Recommended Hue Range Why
Finance/Banking 250-260 (blue) Trust, stability
Health/Medical 160-180 (teal) Calm, clinical
Creative/Design 310-340 (magenta/purple) Expressive
Food/Restaurant 20-40 (orange/warm) Appetite, warmth
Environment/Nature 140-160 (green) Growth, natural
Education 250-270 (blue-purple) Knowledge, clarity
Social/Community 330-350 (pink/rose) Connection, warmth
Productivity/Dev 220-250 (blue) Focus, precision

2.3 Generate the Full System

Primary scale (10 steps):

:root {
  --primary-50:  oklch(97% 0.02 var(--hue-primary));
  --primary-100: oklch(93% 0.04 var(--hue-primary));
  --primary-200: oklch(85% 0.08 var(--hue-primary));
  --primary-300: oklch(75% 0.12 var(--hue-primary));
  --primary-400: oklch(65% 0.16 var(--hue-primary));
  --primary-500: oklch(55% 0.20 var(--hue-primary));  /* base */
  --primary-600: oklch(48% 0.20 var(--hue-primary));
  --primary-700: oklch(40% 0.18 var(--hue-primary));
  --primary-800: oklch(32% 0.14 var(--hue-primary));
  --primary-900: oklch(24% 0.10 var(--hue-primary));
  --primary-950: oklch(16% 0.06 var(--hue-primary));
}

Tinted neutrals (brand-aware greys):

:root {
  --hue-primary: 250;  /* extracted from primary color */

  /* Neutrals tinted with a whisper of the primary hue */
  --neutral-50:  oklch(98% 0.005 var(--hue-primary));
  --neutral-100: oklch(96% 0.008 var(--hue-primary));
  --neutral-200: oklch(91% 0.008 var(--hue-primary));
  --neutral-300: oklch(84% 0.008 var(--hue-primary));
  --neutral-400: oklch(70% 0.008 var(--hue-primary));
  --neutral-500: oklch(55% 0.008 var(--hue-primary));
  --neutral-600: oklch(45% 0.010 var(--hue-primary));
  --neutral-700: oklch(35% 0.010 var(--hue-primary));
  --neutral-800: oklch(25% 0.010 var(--hue-primary));
  --neutral-900: oklch(18% 0.010 var(--hue-primary));
  --neutral-950: oklch(12% 0.008 var(--hue-primary));
}

Semantic colors:

:root {
  /* S
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл design-color?

Add strategic color to monochromatic or dull interfaces using oklch for perceptually uniform palettes. Generates harmonious color systems with automatic light/dark variants and accessible contrast ratios.

Как установить скилл design-color?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл design-color запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить design-color с