opsinjs

DeriveOptions

The knobs on theme derivation.

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.

DeriveOptions

The knobs on theme derivation. Every one of them has a default, so a brand colour on its own is already a complete input.

KindDeclared in
interfacelib/color/derive.ts
export interface DeriveOptions {
  neutralChroma?: number
  gamut?: Gamut
  maxSeedChroma?: number
}

On this page