Skip to content
color-kitnext
StartAPI
color-kit on GitHub
Start

Concepts

  • OKLCH-canonical
  • Requested vs displayed
  • Planes and queries
  • Gamut and tolerance
  • Contrast

Guides

  • Headless picker
  • React
  • Contrast-aware palettes
  • GPU and three.js
  • Performance

API

  • Overview
  • @pbroom/color-kit
  • @pbroom/color-kit/plane
      • ffunctionplaneModelChannels
      • ffunctionplaneModelDefaultRange
      • KconstPLANE_MODEL_CHANNELS
      • KconstPLANE_MODEL_DEFAULT_AXES
      • KconstPLANE_MODEL_DEFAULT_RANGES
  • @pbroom/color-kit/interop
  • @pbroom/color-kit/compute
  • @pbroom/color-kit/hct
  • @pbroom/color-kit/driver
  • @pbroom/color-kit/react
Map

@pbroom/color-kit/plane/Models

PLANE_MODEL_DEFAULT_RANGES

Default axis ranges for each model's channels.

constimport { PLANE_MODEL_DEFAULT_RANGES } from '@pbroom/color-kit/plane';model-specs.ts:68
const PLANE_MODEL_DEFAULT_RANGES: { readonly [Model in PlaneModel]: Readonly<Record<PlaneChannelFor<Model>, [number, number]>> };

Ranges may be descending (for example [100, 0]) to intentionally invert an axis direction in normalized space.

Also exported from

  • @pbroom/color-kitthe same declaration, re-exported

Your display: detecting

MIT licensedSource