color toolbox
TYEclipse/dsh-color · skills
Color toolbox for DeepSeek Harness (dsh): parse/convert any CSS color (hex, rgb, hsl, hwb, named), WCAG contrast ratios with AA/AAA verdicts, named-color lookup, harmonious palettes (7 types), and color adjustments — zer.
★ 2GitHub stars
0Forks
2026-08-26Last updated
TypeScriptLanguage
MITLicense
Key features
- Input formatshex shorthand/full (3/4/6/8 digits), legacy comma syntax (rgb(255, 0, 0)) and modern space syntax (rgb(255 0 0 / 50%)), percentages (rgb(100% 0% 0%)), angle units for hue (deg/rad/grad/turn), all 148 CSS Color Module Level 4 named colors, and transparent.
- Pure local math — zero runtime dependencies, no network, no side effects.
- Alpha is preserved through every conversion
- hex output switches to 8-digit form only when alpha < 1.
- WCAG mathrelative luminance per WCAG 2.x (sRGB linearization), ratio (L1+0.05)/(L2+0.05), thresholds AA 4.5 / AAA 7 for normal text and AA 3 / AAA 4.5 for large text (≥18pt or ≥14pt bold).
Install command
dsh plugin --profile web add github:TYEclipse/dsh-color