AccentFailure
A colour that cannot reach WCAG 2.2 AA, and the nearest one that can.
This is an interface exported by @mapcairn/theme, checked against version 0.2.0.
Signature
import type { AccentFailure } from "@mapcairn/theme";
interface AccentFailure
Properties
message
message: string;
A sentence that says what failed and the nearest passing colour.
nearest
nearest: string | undefined;
The nearest colour in lightness that passes, or undefined when none does.
pair
pair: AccentPair | undefined;
The first pair that fails, or undefined when none could be found.
role
role: AccentRole;
The role that fails.
theme
theme: ThemeName;
The theme it fails in.
value
value: string;
The colour as the host gave it.
See also
Source: packages/theme/src/accent.ts:64