color-ramp-cli

1.2.0 • Public • Published

npm

🎨 color-ramp-cli

A simple CLI tool that generates color ramps from CSS colors.

📦 Installation

pnpm add -g color-ramp-cli

🛠 Options

Option Description Default
-s, --steps Number of steps in ramp 11
-h, --help Show help message
-v, --version Show version number

Example

cgr "#ff5733"
npx color-ramp-cli red green blue
pnpm dlx color-ramp-cli skyblue "rgb(0 255 0)" "hsl(0 100% 25%)"

This will generate a smooth color ramp based on the input color.

📘 Help

Run with --help to see available commands and options:

cgr --help

📦 Output

A list of color values forming a ramp using OKLCH color space interpolation.

📝 License

MIT © maxwihlborg

Package Sidebar

Install

npm i color-ramp-cli

Weekly Downloads

6

Version

1.2.0

License

MIT

Unpacked Size

122 kB

Total Files

3

Last publish

Collaborators

  • maxwihlborg