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

MultiColorEntryInput

One initial entry of a multi-color model.

interfaceimport type { MultiColorEntryInput } from '@pbroom/color-kit/driver';multi-color-state.ts:16
interface MultiColorEntryInput {
  id: string;
  color: string | Color;
}

Properties

idstring
Unique entry id. Later duplicates are ignored.
colorstring | Color
OKLCH color, or a CSS color string parsed with parse.

Also exported from

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

Your display: detecting

MIT licensedSource