# AccentFailure

A colour that cannot reach WCAG 2.2 AA, and the nearest one that can.

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

## Signature

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

## Properties

### message

```ts
message: string;
```

A sentence that says what failed and the nearest passing colour.

### nearest

```ts
nearest: string | undefined;
```

The nearest colour in lightness that passes, or `undefined` when none does.

### pair

```ts
pair: AccentPair | undefined;
```

The first pair that fails, or `undefined` when none could be found.

### role

```ts
role: AccentRole;
```

The role that fails.

### theme

```ts
theme: ThemeName;
```

The theme it fails in.

### value

```ts
value: string;
```

The colour as the host gave it.

## See also

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

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