ColorPaletteTransformerInterface
InterfaceInterface for palette transformers that create modified versions of color palettes.
Transformers apply systematic changes to all colors in a palette, such as
converting a scheme for dark mode or applying artistic effects.
Methods
public function transform(ColorPalette $palette): ColorPalette
Transform a color palette to a new palette with modified colors.
Parameters
| Name | Type | Default |
|---|---|---|
$palette |
ColorPalette | - |