# 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

```ts
import type { ThemeStylesheetCreated } from "@mapcairn/theme";
 
interface ThemeStylesheetCreated
```

## Properties

### css

```ts
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

```ts
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

```ts
ok: true;
```

True: the override passed and `css` holds the stylesheet.

## See also

- [`ContrastFinding`](https://docs.mapcairn.com/api/theme/ContrastFinding.md)

Source: [packages/theme/src/createThemeStylesheet.ts:42](https://github.com/MapCairn/mapcairn/blob/main/packages/theme/src/createThemeStylesheet.ts#L42)
