---
name: "tailwind-color-palette-extender"
description: "Generate balanced, perceptually uniform 10-shade color palettes for Tailwind CSS."
metadata:
  author: "Tailwind Labs"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "generate tailwind color palette"
  - "create oklch color scale"
  - "extend colors in tailwind.config"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Tailwind CSS Custom Palette Extender

Generates 50 through 950 color shade scales using OKLCH and CIELAB color spaces, ensuring uniform perceived brightness steps without muddy midtones or oversaturated highlights.

## When to Invoke
Invoke this skill whenever you need to:
- generate tailwind color palette
- create oklch color scale
- extend colors in tailwind.config

## Execution SOP & Rules
1. Use OKLCH color space for interpolating shade steps to maintain consistent perceived lightness.
2. Map generated shades to standard Tailwind tokens: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950.
3. Define color values as CSS variables (e.g. --color-primary: oklch(...)) to enable dark mode switching.
4. Verify contrast ratio between shade 50 (background) and shade 900 (text) exceeds 12:1.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
