TYEclipse/dsh-color

TYEclipse★ 0TypeScript最后同步: 2026-08-16

在 GitHub 打开

Color conversion 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 — zero runtime dependencies, pure math

README 摘要

dsh-color Color conversion toolbox for DeepSeek Harness (dsh): parse and convert any CSS color, evaluate WCAG contrast, and look up CSS color names. Pure local math — zero runtime dependencies, no network, no side effects. Tools Tool Description convert color Parse any CSS color (hex rgb / rgba / rrggbb / rrggbbaa , rgb() / rgba() , hsl() / hsla() , hwb() , CSS color names) and convert it to hex / rgb / hsl / hwb — or all formats at once contrast ratio WCAG 2.x contrast ratio between two colors with AA/AAA verdicts for normal or large text (WCAG 1.4.3 thresholds) color info CSS named-color lookup: search by name substring ("blue" → blue, blueviolet, lightblue, …) or by exact value (aqua ≡ cyan), with hex/rgb/hsl/luminance per match Install Replace web with your profile name ( dsh plugin has no default profile). Usage examples Feature notes - Input formats : hex 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 . - Alpha is preserved through every conversion; hex output s…

在 GitHub 查看完整 README →
终端/TUIcolorcssdeepseek-harnessdsh-pluginwcagsearch

分类