Skip to main content

ThemeContrastCheck

The result of checkThemeContrast.

This is an interface exported by @mapcairn/theme, checked against version 0.2.0.

Signature​

import type { ThemeContrastCheck } from "@mapcairn/theme";

interface ThemeContrastCheck

Properties​

findings​

findings: ContrastFinding[];

One finding for each pair, theme and backdrop that could be checked.

invalid​

invalid: InvalidColour[];

What could not be checked, and why.

passes​

passes: boolean;

True when nothing is invalid and every finding passes.

See also​

Source: packages/theme/src/checkThemeContrast.ts:101