AccentPair
The first pair that fails in a theme: what is measured and what it reaches.
This is an interface exported by @mapcairn/theme, checked against version 0.2.0.
Signature
import type { AccentPair } from "@mapcairn/theme";
interface AccentPair
Properties
background
background: ContrastBackground;
What it sits on.
foreground
foreground: ThemeColourRole;
The role drawn.
ratio
ratio: number;
The ratio reached, unrounded.
required
required: number;
The WCAG 2.2 AA minimum for this pair.
See also
Source: packages/theme/src/accent.ts:52