Files
admin 9bf56a806b Move docs/ package mirror into document-navigator plugin
Relocate the ~6k-file docs tree from the repo root into
plugins/document-navigator/docs/ so the plugin is self-contained and
portable. docs/superpowers/ (specs and plans) stays at the repo root.

Moved via cp+rm rather than git mv because directory rename() fails with
EPERM on this WSL /mnt DrvFs mount; git rename-detection pairs the
identical-content files at commit time.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 01:10:00 +01:00

1.4 KiB

@suaveplan/colour-convert-hsluv - HSLuv perceptually uniform colour space: conversions and harmony generators

HSLuv perceptually-uniform colour space with gamut-mapped ray intersection for sRGB. This plugin provides bidirectional RGB↔HSLuv/HPLuv conversions and uniform colour harmonies (complementary, triad, tetrad) that preserve perceptual lightness across hue rotations.

Documentation tree

  • colour-convert-hsluv — colour-convert-hsluv.ts implements the HSLuv perceptually uniform colour space. Unlike HSL, which stretches and compr…
    • colour-convert-hsluv — colour-convert-hsluv.ts implements the HSLuv perceptually uniform colour space. Unlike HSL, which stretches and compr…

Installation

bun add @suaveplan/colour-convert-hsluv

Quick Start

import { rgbToHsluv, hsluvToRgb, uniformTriad } from "@suaveplan/colour-convert-hsluv";

const hsluv = rgbToHsluv({ r: 255, g: 0, b: 0 });
console.log(hsluv); // { h: ~12.2, s: ~100, l: ~53.2 }

const colours = uniformTriad({ r: 59, g: 130, b: 246 });
console.log(colours); // [primary, secondary, tertiary]

Modules