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
  • @pbroom/color-kit/interop
  • @pbroom/color-kit/compute
  • @pbroom/color-kit/hct
  • @pbroom/color-kit/driver
      • KconstCOLOR_INPUT_DEFAULT_RANGES
      • ffunctioncolorFromColorInputChannelValue
      • ffunctioncolorFromColorInputKey
      • ffunctionformatColorInputChannelValue
      • ffunctiongetColorInputChangedChannel
      • ffunctiongetColorInputChannelGlyph
      • ffunctiongetColorInputChannelValue
      • ffunctiongetColorInputLabel
      • ffunctiongetColorInputPrecisionFromStep
      • ffunctionnormalizeColorInputValue
      • ffunctionparseColorInputExpression
      • ffunctionresolveColorInputDraftValue
      • ffunctionresolveColorInputRange
      • ffunctionresolveColorInputSteps
      • ffunctionresolveColorInputWrap
      • TtypeColorInputModel
      • TtypeColorInputChannel
      • TtypeColorInputChannelFor
      • IinterfaceColorInputPrimitiveExpressionOptions
      • TtypeColorInputSpec
      • TtypeOklchColorInputChannel
      • TtypeRgbColorInputChannel
      • TtypeHslColorInputChannel
      • TtypeColorInputKey
      • IinterfaceColorInputStepConfig
      • IinterfaceResolveColorInputStepsOptions
      • IinterfaceParseColorInputExpressionOptions
      • IinterfaceResolveColorInputDraftValueOptions
  • @pbroom/color-kit/react
Map

@pbroom/color-kit/driver/Color input

OklchColorInputChannel

Channels of the 'oklch' input model.

typeimport type { OklchColorInputChannel } from '@pbroom/color-kit/driver';color-input.ts:33
type OklchColorInputChannel = 'l' | 'c' | 'h' | 'alpha';

Your display: detecting

MIT licensedSource