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
      • ffunctionaddMultiColorEntry
      • ffunctioncreateMultiColorModel
      • ffunctionmaterializeMultiColorState
      • ffunctionmultiColorModelFromState
      • ffunctionremoveMultiColorEntry
      • ffunctionrenameMultiColorEntry
      • ffunctionselectMultiColorEntry
      • ffunctionsetMultiColorActiveGamut
      • ffunctionsetMultiColorActiveView
      • ffunctionsetMultiColorChannel
      • ffunctionsetMultiColorRequested
      • IinterfaceCreateMultiColorModelOptions
      • IinterfaceMultiColorEntryInput
      • IinterfaceMultiColorEntryModel
      • TtypeMultiColorInput
      • IinterfaceMultiColorModel
      • IinterfaceMultiColorState
      • IinterfaceMultiColorUpdateEvent
      • IinterfaceSetMultiColorRequestedOptions
  • @pbroom/color-kit/react
Map

@pbroom/color-kit/driver/Multi color

MultiColorInput

Initial colors of a multi-color model: an { id: color } record (in key order) or an ordered array of entries.

typeimport type { MultiColorInput } from '@pbroom/color-kit/driver';multi-color-state.ts:27
type MultiColorInput =
  | Record<string, Color | string>
  | MultiColorEntryInput[];

Also exported from

  • @pbroom/color-kit/reactthe same declaration, re-exported

Your display: detecting

MIT licensedSource