palette-kit
v0.0.1
Published
Predictable OKLCH ramps and hue relationships for color systems.
Maintainers
Readme
Palette Kit
Predictable OKLCH ramps and hue relationships for color systems.
palette-kit generates usable lightness ramps and simple hue relationships from compact OKLCH values. It is designed for interface palettes where perceptual spacing matters more than channel arithmetic.
Not published yet. It builds from source in this repository.
Usage
import { generatePalette, triadic } from "palette-kit";
const palette = generatePalette({ lightness: 0.62, chroma: 0.18, hue: 250 });
const accents = triadic({ lightness: 0.62, chroma: 0.18, hue: 250 });API
| Export | Purpose |
| --- | --- |
| generatePalette | Create a sorted OKLCH lightness ramp. |
| shiftLightness | Tint or shade a color by a relative amount. |
| rotateHue | Rotate a color around the hue wheel. |
| complementary / triadic | Generate common hue relationships. |
Development
npm run buildLicense
MIT
