Releases
v0.6.0
Compare
Sorry, something went wrong.
No results found
Minor Changes
#25 7462021 Thanks @tenphi ! - Add mix color type for blending two colors with optional contrast solving
New MixColorDef with type: 'mix' — blend two referenced colors via base and target
Opaque blend: interpolates in OKHSL or sRGB space, producing a solid color
Transparent blend: outputs the target color with controlled opacity (alpha = value/100)
space option: 'okhsl' (default, perceptually uniform) or 'srgb' (matches browser compositing)
contrast option: adjusts mix ratio or opacity to meet a WCAG contrast floor against the base
Achromatic hue handling: when mixing with unsaturated colors (e.g. white/black), the hue is taken from the saturated color
value and contrast support [normal, highContrast] pairs
Mix colors can reference other mix colors (chaining) but not shadow colors
Patch Changes
#27 175fc81 Thanks @tenphi ! - Fix green-channel k4 sign error in OKHSL gamut mapping, deduplicate internal color math, add round-trip regression tests.
You can’t perform that action at this time.