# 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

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

## Properties

### css

```ts
css: undefined;
```

Always `undefined`: a refused theme produces no CSS.

### findings

```ts
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`](https://docs.mapcairn.com/api/theme/checkThemeContrast.md).

### invalid

```ts
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`](https://docs.mapcairn.com/api/theme/ThemeOverride.md)).

### invalidScope

```ts
invalidScope: boolean;
```

True when `scope` is not `:root`, `#id` or `.class`, or could not be read.

### ok

```ts
ok: false;
```

False: nothing was written.

## See also

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

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