color-palette

Generate accessible 11-shade color palettes and Tailwind v4 tokens from a brand hex.

1|Updated Aug 18, 2026
One-click install
npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill color-palette-scsm-unrestrict
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: color-palette
Source: https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent/tree/main/frontend-engineer/skills/color-palette
Command: npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill color-palette-scsm-unrestrict

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve? Building a complete, accessible color system from a single brand color is tedious and error-prone: shades must progress smoothly, semantic tokens must pair correctly, dark mode must invert properly, and every text/background combination must pass WCAG contrast ratios. This Skill automates that entire workflow. ## Core Features & Use Cases - 11-Shade Scale Generation: Converts a brand hex to HSL and generates shades 50-950 with tuned lightness and saturation curves. - Semantic Token Mapping: Produces paired background/foreground tokens (primary, secondary, muted, accent, destructive, border, ring) for both light and dark modes. - WCAG Contrast Verification: Includes luminance and contrast-ratio formulas plus quick-check tables to validate AA/AAA compliance and fix common failures. - Tailwind v4 Output: Emits ready-to-paste @theme CSS with dark mode overrides, plus a starter template in assets/tailwind-colors.css. - Use Case: A designer hands you a brand color #0D9488; use this Skill to produce a full design-system palette with dark mode variants and verified contrast in one pass. ## Quick Start Ask the agent to generate a complete accessible Tailwind color palette with dark mode from your brand hex, for example #0D9488.

Frequently Asked Questions about color-palette

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

FAQPage Schema
How do I generate a color palette from a single brand hex?

Convert the hex to HSL, keep the hue constant, and generate shades by varying lightness from 97% (shade 50) down to 10% (shade 950). Reduce saturation by 15-20% for light shades to avoid overly vibrant pastels, and keep full saturation for shades 500-950.

How to create dark mode colors for a Tailwind design system?

Invert lightness while preserving hue and saturation: swap extremes like 50 and 950, use shade 500 instead of 600 for primary actions, and use off-white shade 50 for text. Always update the foreground token whenever its background changes.

What contrast ratio is needed for WCAG AA compliance?

WCAG AA requires 4.5:1 for normal text, 3:1 for large text (18px+ or 14px+ bold), and 3:1 for UI components like buttons and borders. AAA raises text requirements to 7:1 for normal and 4.5:1 for large text.

Does this work with Tailwind CSS v4?

Yes, the output uses Tailwind v4's @theme directive with CSS custom properties like --color-primary-600. Dark mode overrides are defined under a .dark class, and a starter template is provided in assets/tailwind-colors.css.

Why does white text on my primary color fail contrast checks?

White on a mid-lightness shade like primary-500 typically yields only 3.9:1, below the 4.5:1 AA threshold. Use a darker shade such as primary-600 (5.7:1) or primary-700 (8.1:1) for button backgrounds instead.