Paste in a brand hex and get back a complete 11-shade color system with Tailwind v4 CSS ready to copy into your project. It generates the full 50-950 scale using HSL manipulation to keep hue consistent while varying lightness, maps semantic tokens like primary, muted, and accent for both light and dark modes, and runs WCAG contrast checks so you know if your text combinations actually pass AA or AAA. The dark mode implementation follows proper inversion patterns, swapping extremes while keeping the brand color recognizable. Useful when you're spinning up a new project and need a real design system from a single color, not just random shades eyeballed in Figma.

skills.sh installs
3.4K
GitHub stars
1.1K
last updated
Aug 21, 2026

Install

$ npx -y skills add jezweb/claude-skills --skill color-palette --agent claude-code

Installs into .claude/skills of the current project.

Files

Colour Palette Generator

Generate a complete, accessible colour system from a single brand hex. Produces Tailwind v4 CSS ready to paste into your project.

Workflow

Step 1: Get the Brand Hex

Ask for the primary brand colour. A single hex like #0D9488 is enough.

Step 2: Generate 11-Shade Scale

Convert hex to HSL, then generate shades by varying lightness while keeping hue constant.

Hex to HSL Conversion
function hexToHSL(hex) {
  hex = hex.replace(/^#/, '');
  const r = parseInt(hex.substring(0, 2), 16) / 255;
  const g = parseInt(hex.substring(2, 4), 16) / 255;
  const b = parseInt(hex.substring(4, 6), 16) / 255;

  const max = Math.max(r, g, b);
  const min = Math.min(r, g, b);
  const diff = max - min;

  let l = (max + min) / 2;
  let s = 0;
  if (diff !== 0) {
    s = l > 0.5 ? diff / (2 - max - min) : diff / (max + min);
  }

  let h = 0;
  if (diff !== 0) {
    if (max === r) h = ((g - b) / diff + (g < b ? 6 : 0)) / 6;
    else if (max === g) h = ((b - r) / diff + 2) / 6;
    else h = ((r - g) / diff + 4) / 6;
  }

  return { h: Math.round(h * 360), s: Math.round(s * 100), l: Math.round(l * 100) };
}

Sponsors

Details

Repository
github.com/jezweb/claude-skills
Categories
Frontend Development, Marketing & SEO, Design & UI/UX

More from jezweb/claude-skills

All 166
1vercel avatarstreamdownvercel/streamdownImplement, configure, and customize Streamdown — a streaming-optimized React Markdown renderer with syntax highlighting, Mermaid diagrams, math rendering, and C3.3Kskills.sh installs
2gogf avatargoframe-v2gogf/skillsGoFrame v2 development skill. Use only when the target Go project uses or is explicitly adopting GoFrame v2: the nearest go.mod requires github.com/gogf/gf/v2, 3.3Kskills.sh installs
3onmax avatarvitestonmax/nuxt-skillsUse when writing unit/integration tests for Vite projects - configure vitest.config.ts, write test suites with describe/it, create mock implementations with vi.3.2Kskills.sh installs
4freshtechbro avatarmodern-web-designfreshtechbro/claudedesignskillsModern web design trends, principles, and implementation patterns for 2024-2025. Use this skill when designing websites, creating interactive experiences, imple3.1Kskills.sh installs
5benjaminsehl avatarliquid-theme-standardsbenjaminsehl/liquid-skillsCSS, JavaScript, and HTML coding standards for Shopify Liquid themes. Covers BEM naming inside stylesheet tags, design tokens, CSS custom properties, Web Compon3.1Kskills.sh installs
6forcedotcom avatargenerating-lwc-componentsforcedotcom/sf-skillsLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patte3.1Kskills.sh installs