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_CHANNELS

Channel sets supported by each plane model.

constimport { PLANE_MODEL_CHANNELS } from '@pbroom/color-kit/plane';model-specs.ts:33
const PLANE_MODEL_CHANNELS: Record<PlaneModel, readonly PlaneChannel[]>;

Use this to validate channel names before constructing model-specific axes.

Also exported from

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

Your display: detecting

MIT licensedSource