DarkModeColorPaletteTransformer

Transforms color palettes for dark mode using perceptual color transformations.

Operates in Oklch space to preserve perceptual qualities while inverting lightness
and optionally dampening chroma for better readability on dark backgrounds.

Methods

public function transform(ColorPalette $palette): ColorPalette
Parameters
NameTypeDefault
$palette ColorPalette -