dragoon0x/optik

palette

Generate a complete 50-950 shade palette from a single hex color. Outputs 11 perceptually uniform shades with CSS variables, Tailwind config, and design token formats.

First seen May 9, 2026

Installation

$ npx skills add dragoon0x/optik --skill palette

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from dragoon0x/optik · top by installs.

npx skills add dragoon0x/optik

Browse all from dragoon0x/optik

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,104 B
  • docs SUMMARY.md 182 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 6 installs

SKILL.md

/palette — Full Shade Palette Generator

Usage

/palette [hex-color]

Algorithm

Given a single brand color:

  1. Convert to HSL
  2. Generate 11 stops (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950)
  3. 500 = the input color
  4. Lighter stops: increase lightness, slightly decrease saturation
  5. Darker stops: decrease lightness, slightly increase saturation, shift hue toward blue
  6. 50 = near white with hue tint, 950 = near black with hue tint

Output

  • CSS custom properties: --color-primary-50 through --color-primary-950
  • Tailwind config extension
  • Hex values table
  • Contrast ratio of each shade against white and black backgrounds

Quality Checks

  • Every shade must be visually distinct from adjacent shades
  • 50 must work as a subtle background color
  • 500-700 must pass AA contrast against white text
  • 800-950 must work as dark mode surface colors