ContrastFinding
The measured contrast of one pair, in one theme, over one backdrop.
This is an interface exported by @mapcairn/theme, checked against version 0.2.0.
Signature
import type { ContrastFinding } from "@mapcairn/theme";
interface ContrastFinding
Properties
backdrop
backdrop: BackdropName | null;
The map backdrop checked over, or null for an opaque background.
background
background: ContrastBackground;
The role it sits on, or map for the bare map.
foreground
foreground: ThemeColourRole;
The role drawn: text, an icon, an edge or a ring.
kind
kind: PairKind;
Whether the foreground is text or a non-text mark.
passes
passes: boolean;
Whether ratio reaches required.
ratio
ratio: number;
The contrast ratio, unrounded.
required
required: number;
The WCAG 2.2 AA minimum for this kind of pair.
theme
theme: ThemeName;
The theme the finding is for.