Build a sequential or diverging ramp
build_rampBuild an evenly spaced perceptual (OKLab) color scale: sequential from start to end, or diverging from start through mid to end. Returns the steps and a background-contrast audit (pairwise separation is not judged for ramps).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Last color (or the positive end) | |
| mid | No | Middle color for a diverging scale; default a neutral near the background | |
| kind | Yes | ||
| start | Yes | First color (or the negative end of a diverging scale) | |
| steps | No | ||
| background | No | #ffffff |