Generate palettes, check WCAG contrast, and convert colors with one command. Zero dependencies. CI-ready.
`colorui palette "fintech dashboard"` returns an OKLCH-balanced palette with ANSI swatches, CSS vars, Tailwind config, or JSON.
`colorui contrast "$FG" "$BG"` exits with code 2 on AA failure - drop it straight into your GitHub Actions or pre-commit hook.
HEX, RGB, HSL, OKLCH, LAB - one shot. Pipe via `echo "#ff0080" | colorui convert - oklch`.
Single JS file, ~9KB. No node_modules tree. Runs anywhere Node 18+ runs - including ephemeral CI containers.
No analytics, no opt-in/opt-out toggle - the feature simply does not exist. The CLI only contacts colorui.io when you trigger a command.
Set COLORUI_API to your own deployment for fully on-prem palette generation. Same edge-fast endpoints, your infrastructure.
The contrast command exits with code 2 on AA failure - drop it straight into a GitHub Actions step:
# .github/workflows/a11y.yml
- name: Brand contrast check
run: |
npx colorui contrast "$BRAND_FG" "$BRAND_BG"
npx colorui contrast "$LINK_COLOR" "$BG_COLOR"You do not need to. Run npx colorui palette "any prompt" and npm fetches the latest version automatically. To install globally, run npm install -g colorui.
Yes - that is the primary design. The contrast command exits with code 2 on AA failure, so it drops straight into a GitHub Actions step or a pre-commit hook. Set NO_COLOR=1 for clean log output.
A single configurable origin via COLORUI_API (default https://colorui.io). Set it to your self-hosted deployment, or to an empty string to make every command fail fast with a network error.
Zero. The package contains a single bin script and three Markdown files. No transitive supply chain to audit, no postinstall scripts, no native bindings.
Yes - pass --json on any command to get machine-readable output. Pipe results into jq, fx, or your own tooling.
The CLI lives in the open in the colorui.io repo at /cli. One bin file. Audit it before installing.