ThemeStylesheetCreated
A theme override that was accepted: the stylesheet and what was measured.
This is an interface exported by @mapcairn/theme, checked against version 0.2.0.
Signature
import type { ThemeStylesheetCreated } from "@mapcairn/theme";
interface ThemeStylesheetCreated
Properties
css
css: string;
The stylesheet text, to serve as a same-origin file. It is empty when the override sets no colour, font or shape.
findings
findings: ContrastFinding[];
One finding for each pair, theme and backdrop, measured on the colours
written to css with the surface as written (translucent). Every one
passes. The opaque surfaces written for reduced transparency are checked
as well, and a failure there refuses the theme, so no finding for them is
listed here.
ok
ok: true;
True: the override passed and css holds the stylesheet.