Skip to main content

InvalidColour

A proposed colour that was not checked, so its pairs are missing from the findings.

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

Signature​

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

interface InvalidColour

Properties​

reason​

reason: InvalidColourReason;

Why it could not be checked.

role​

role: string;

The role, or the key or section that could not be used: override for an override that is not a plain object, colour for a section that is not (with theme set when it is one theme's section).

theme​

theme: ThemeName | null;

The theme it was proposed for, or null when it concerns the whole override.

value​

value: unknown;

The value as the host supplied it.

See also​

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