opsinjs

Ramp

One complete lightness ramp, as a value per step.

How this is generated

Source: lib/color/derive.ts. Script: scripts/build-reference.mts. Command: pnpm run generate.

Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.

Ramp

One complete lightness ramp, as a value per step. The chromatic ramp and the neutral ramp of a derived theme are both this shape.

KindDeclared in
typelib/color/derive.ts
export type Ramp = Record<RampStep, RampStepValue>

On this page