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
  • @pbroom/color-kit/react
      • ffunctionuseGamutBoundary
      • ffunctionuseChromaBand
      • ffunctionuseContrastRegion
      • ffunctionuseFallbackPoints
      • IinterfaceColorPlaneLineGeometry
      • TtypeColorPlaneLinePoint
      • IinterfaceUseGamutBoundaryOptions
      • IinterfaceUseChromaBandOptions
      • IinterfaceContrastRegionGeometry
      • IinterfaceContrastRegionMetrics
      • IinterfaceUseContrastRegionOptions
      • IinterfaceColorPlaneFallbackPoints
      • IinterfaceColorPlanePixelSize
      • IinterfaceColorPlaneQueryOptions
      • IinterfaceColorPlaneSpec
Map

@pbroom/color-kit/react/Plane geometry

ColorPlaneLinePoint

One vertex of a plane line: OKLCH l/c and normalized x/y (y down).

typeimport type { ColorPlaneLinePoint } from '@pbroom/color-kit/react';use-plane-line-query.ts:15
type ColorPlaneLinePoint = ColorAreaGamutBoundaryPoint;

Your display: detecting

MIT licensedSource