返回顶部
c

color-toolkit

Convert, analyze, and generate colors from the CLI. Supports HEX, RGB, HSL, HSV, CMYK conversion, WCAG contrast ratio checking (AA/AAA compliance), palette generation (complementary, analogous, triadic, split-complementary, monochromatic), color manipulation (lighten/darken/saturate/desaturate), mixing, random generation, and CSS named color lookup. Use when the user needs color conversions, accessibility contrast checks, palette generation, or color manipulation. Zero external dependencies.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
96
下载量
0
收藏
概述
安装方式
版本历史

color-toolkit

# Color Toolkit Convert colors, check WCAG contrast, generate palettes, and manipulate colors. Pure Python, no dependencies. ## Quick Start ```bash # Convert between formats (accepts #hex, rgb(), hsl(), CSS names, or r,g,b) python3 scripts/color_toolkit.py convert '#ff6347' python3 scripts/color_toolkit.py convert tomato python3 scripts/color_toolkit.py convert 'rgb(52, 152, 219)' # WCAG contrast check python3 scripts/color_toolkit.py contrast '#333333' '#ffffff' # Generate palettes python3 scripts/color_toolkit.py palette '#3498db' -s triadic python3 scripts/color_toolkit.py palette '#e74c3c' -s monochromatic -n 7 # Modify colors python3 scripts/color_toolkit.py modify '#3498db' --op lighten --amount 20 python3 scripts/color_toolkit.py modify coral --op darken --amount 15 # Mix colors python3 scripts/color_toolkit.py mix '#ff0000' '#0000ff' --weight 0.5 # Random colors python3 scripts/color_toolkit.py random -n 5 # Search CSS named colors python3 scripts/color_toolkit.py lookup green ``` ## Commands | Command | Description | |---------|-------------| | `convert` | Convert any color to HEX, RGB, HSL, HSV, and CMYK. | | `contrast` | WCAG contrast ratio between foreground and background. Reports AA/AAA compliance. | | `palette` | Generate palettes: `complementary`, `analogous`, `triadic`, `split-complementary`, `monochromatic`. | | `modify` | Adjust color: `lighten`, `darken`, `saturate`, `desaturate`. `--amount 0-100`. | | `mix` | Blend two colors. `--weight` controls the ratio (0.0 = all color1, 1.0 = all color2). | | `random` | Generate random colors. `-n` sets count. | | `lookup` | Search CSS named colors by partial name. | All commands support `--json` for structured output. ## Accepted Color Formats `#hex` (3 or 6 digit), `rgb(r, g, b)`, `hsl(h, s%, l%)`, `r,g,b`, or any CSS color name (e.g., `tomato`, `steelblue`, `coral`).

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 color-toolkit-1776096721 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 color-toolkit-1776096721 技能

通过命令行安装

skillhub install color-toolkit-1776096721

下载 Zip 包

⬇ 下载 color-toolkit v1.0.0

文件大小: 6.33 KB | 发布时间: 2026-4-14 12:49

v1.0.0 最新 2026-4-14 12:49
Initial release of color-toolkit.

- Convert colors between HEX, RGB, HSL, HSV, and CMYK formats from the command line.
- Check WCAG contrast ratio and AA/AAA compliance for accessibility.
- Generate color palettes: complementary, analogous, triadic, split-complementary, and monochromatic.
- Manipulate colors (lighten, darken, saturate, desaturate), mix colors, and generate random colors.
- Search for CSS named colors and look up their values.
- Pure Python implementation with zero external dependencies.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部