# AccentPair

The first pair that fails in a theme: what is measured and what it reaches.

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

## Signature

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

## Properties

### background

```ts
background: ContrastBackground;
```

What it sits on.

### foreground

```ts
foreground: ThemeColourRole;
```

The role drawn.

### ratio

```ts
ratio: number;
```

The ratio reached, unrounded.

### required

```ts
required: number;
```

The WCAG 2.2 AA minimum for this pair.

## See also

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

Source: [packages/theme/src/accent.ts:52](https://github.com/MapCairn/mapcairn/blob/main/packages/theme/src/accent.ts#L52)
