# ContrastFinding

The measured contrast of one pair, in one theme, over one backdrop.

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

## Signature

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

## Properties

### backdrop

```ts
backdrop: BackdropName | null;
```

The map backdrop checked over, or `null` for an opaque background.

### background

```ts
background: ContrastBackground;
```

The role it sits on, or `map` for the bare map.

### foreground

```ts
foreground: ThemeColourRole;
```

The role drawn: text, an icon, an edge or a ring.

### kind

```ts
kind: PairKind;
```

Whether the foreground is text or a non-text mark.

### passes

```ts
passes: boolean;
```

Whether `ratio` reaches `required`.

### ratio

```ts
ratio: number;
```

The contrast ratio, unrounded.

### required

```ts
required: number;
```

The WCAG 2.2 AA minimum for this kind of pair.

### theme

```ts
theme: ThemeName;
```

The theme the finding is for.

## See also

- [`BackdropName`](https://docs.mapcairn.com/api/theme/BackdropName.md)
- [`ContrastBackground`](https://docs.mapcairn.com/api/theme/ContrastBackground.md)
- [`ThemeColourRole`](https://docs.mapcairn.com/api/theme/ThemeColourRole.md)
- [`PairKind`](https://docs.mapcairn.com/api/theme/PairKind.md)
- [`ThemeName`](https://docs.mapcairn.com/api/theme/ThemeName.md)

Source: [packages/theme/src/checkThemeContrast.ts:55](https://github.com/MapCairn/mapcairn/blob/main/packages/theme/src/checkThemeContrast.ts#L55)
