MCPcopy
hub / github.com/evilmartians/oklch-picker

github.com/evilmartians/oklch-picker @main sqlite

repository ↗ · DeepWiki ↗
199 symbols 538 edges 55 files 0 documented · 0%
README

OKLCH & LCH Color Picker

Color picker and converter for OKLCH and LCH color space.

OKLCH is a new way to encode colors (like hex, RGBA, or HSL):

  • OKLCH has native browser support.
  • It can encode more colors for modern screens (P3, Rec. 2020, and beyond).
  • Unlike HSL, OKLCH always has predictable contrast after color transformation.
  • In contrast with LCH and Lab, no hue shift on chroma changes.
  • Provides great accessibility on palette generation.

Additional links about Oklab and OKLCH:

Development

To run a local copy for development:

  1. Use Dev Container which is coming with right Node.js and pnpm (or install them manually).
  2. Install dependencies:

sh pnpm install

  1. Run local server:

sh pnpm start

Extension points exported contracts — how you extend this code

ViteWorker (Interface)
(no doc)
types.d.ts
VisibleValue (Interface)
(no doc)
stores/visible.ts
FrameRecord (Interface)
(no doc)
stores/benchmark.ts
LchValue (Interface)
(no doc)
stores/current.ts
SupportValue (Interface)
(no doc)
stores/support.ts
Lch (Interface)
(no doc)
lib/colors.ts
UpdateSlice (Interface)
(no doc)
lib/model.ts
BorderColor (Interface)
(no doc)
view/chart/index.ts

Core symbols most depended-on inside this repo

setCurrent
called by 25
stores/current.ts
toDx
called by 14
lib/colors.ts
syncSpinbuttonAria
called by 11
view/field/aria.ts
build
called by 10
lib/colors.ts
clean
called by 9
lib/colors.ts
inRGB
called by 9
lib/colors.ts
runListeners
called by 8
stores/current.ts
valueToColor
called by 8
stores/current.ts

Shape

Function 183
Interface 14
Method 2

Languages

TypeScript100%

Modules by API surface

lib/colors.ts37 symbols
view/field/index.ts20 symbols
stores/current.ts20 symbols
view/range/index.ts16 symbols
view/chart/index.ts13 symbols
lib/model.ts13 symbols
stores/benchmark.ts10 symbols
view/card/index.ts8 symbols
view/main/index.ts6 symbols
view/benchmark/index.ts6 symbols
lib/math.ts6 symbols
view/code/index.ts4 symbols

Dependencies from manifests, versioned

@colordx/core5.4.3 · 1×
@colordx/gpu0.2.1 · 1×
@csstools/postcss-oklab-function5.0.5 · 1×
@logux/oxc-configs0.4.0 · 1×
@logux/stylelint-config1.0.1 · 1×
@nanostores/persistent1.3.4 · 1×
@size-limit/file12.1.0 · 1×
@types/delaunator5.0.3 · 1×
@types/node26.0.0 · 1×
@types/three0.184.1 · 1×
actions-up1.14.3 · 1×
autoprefixer10.5.0 · 1×

For agents

$ claude mcp add oklch-picker \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact