# CategoryColour

Colour by category, for alert levels and kinds.

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

## Signature

```ts
import type { CategoryColour } from "@mapcairn/core";
 
interface CategoryColour
```

## Properties

### categories

```ts
readonly categories: readonly StyleCategory[];
```

The categories, each with a value, a label and a colour.

### field

```ts
readonly field: string;
```

The decoded field whose value picks the category.

### kind

```ts
readonly kind: "category";
```

Tells a category colour rule from the other rules.

### other

```ts
readonly other: {
        readonly label: DefinitionText;
        readonly colour: PaletteSlot;
    };
```

Used for a value no category names.

## See also

- [`StyleCategory`](https://docs.mapcairn.com/api/core/StyleCategory.md)
- [`DefinitionText`](https://docs.mapcairn.com/api/core/DefinitionText.md)
- [`PaletteSlot`](https://docs.mapcairn.com/api/core/PaletteSlot.md)

Source: [packages/core/src/layers/definition.ts:335](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L335)
