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
      • ffunctionmaxHctChromaForHue
      • ffunctionmaxHctPeakToneForHue
      • ffunctionmaxHctChromaAtTone
      • IinterfaceHctHuePeak
      • TtypeMaxHctChromaForHueMethod
      • IinterfaceMaxHctChromaForHueOptions
  • @pbroom/color-kit/driver
  • @pbroom/color-kit/react
Map

@pbroom/color-kit/hct/HCT

MaxHctChromaForHueMethod

How maxHctChromaForHue resolves the peak: 'lut' interpolates a cached hue lookup table, 'direct' searches tone per call.

typeimport type { MaxHctChromaForHueMethod } from '@pbroom/color-kit/hct';index.ts:23
type MaxHctChromaForHueMethod = 'lut' | 'direct';

Also exported from

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

Your display: detecting

MIT licensedSource