A simple CLI tool that generates color ramps from CSS colors.
pnpm add -g color-ramp-cli
Option | Description | Default |
---|---|---|
-s, --steps | Number of steps in ramp | 11 |
-h, --help | Show help message | |
-v, --version | Show version number |
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.
Run with --help
to see available commands and options:
cgr --help
A list of color values forming a ramp using OKLCH color space interpolation.
MIT © maxwihlborg