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_AXES

Default x/y axis channels for each plane model.

constimport { PLANE_MODEL_DEFAULT_AXES } from '@pbroom/color-kit/plane';model-specs.ts:49
const PLANE_MODEL_DEFAULT_AXES: Record<PlaneModel, { x: PlaneChannel; y: PlaneChannel }>;

definePlane() falls back to these defaults when explicit axes are omitted.

Also exported from

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

Your display: detecting

MIT licensedSource