
Color Palette
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-codeInstalls 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- Tailwind Theme Builder3.3K
- Wordpress Elementor3K
- Ux Audit3K
- Tailwind V4 Shadcn2.7K
- Tanstack Query2.5K
- Image Processing2.5K
- Favicon Gen2.3K
- Tanstack Start2.2K
- Google Apps Script2K
- Icon Set Generator2K
- Fastapi2K
- Seo Local Business1.9K
- Responsiveness Check1.8K
- Vitest1.8K
- D1 Drizzle Schema1.7K
- Wordpress Content1.7K
- Elevenlabs Agents1.7K
- Project Health1.6K
- Hono Api Scaffolder1.6K
- Wordpress Setup1.6K
- Landing Page1.5K
- Design Review1.5K
- Mcp Builder1.4K
- Social Media Posts1.4K