ThemeStylesheetRefused
A theme override that was refused, with the reasons and no stylesheet.
This is an interface exported by @mapcairn/theme, checked against version 0.2.0.
Signature
import type { ThemeStylesheetRefused } from "@mapcairn/theme";
interface ThemeStylesheetRefused
Properties
css
css: undefined;
Always undefined: a refused theme produces no CSS.
findings
findings: ContrastFinding[];
The pairs that could be measured, passing and failing. Where a colour
or the scope could not be used, the pairs that depend on a colour are
missing, as in checkThemeContrast.
invalid
invalid: InvalidColour[];
The colours and keys that could not be used, and why. A fontFamily that
could not be used is listed here with the role fontFamily and no theme:
the reason is malformed when it is not a string and unparseable when
it is anything but a list of family names (see
ThemeOverride).
invalidScope
invalidScope: boolean;
True when scope is not :root, #id or .class, or could not be read.
ok
ok: false;
False: nothing was written.