PaletteFixerInterface

Interface

Interface for palette fixers that correct issues in color palettes.

Fixers analyze color palettes and apply corrections to improve specific
qualities such as accessibility (contrast) or color theory (harmony).

Methods

public function analyze(ColorPaletteInterface $palette): array

Analyze the palette without making corrections.

Returns information about detected issues and their severity.

Parameters
NameTypeDefault
$palette ColorPaletteInterface -

fix

public function fix(ColorPaletteInterface $palette, array $options): ColorPaletteInterface

Analyze and fix issues in the given palette.

Parameters
NameTypeDefault
$palette ColorPaletteInterface -
$options array []