# mapOverlayTokens

The CSS variable references for everything drawn over the map: pin,
measure line and fill, accuracy circle, halo, loading indicator and
tile-error banner. Overlay components style from these alone, so they
look the same on every map engine and never import an engine's styles.

This is a constant exported by `@mapcairn/theme`, checked against version 0.2.0.

## Signature

```ts
import { mapOverlayTokens } from "@mapcairn/theme";
 
mapOverlayTokens: {
    readonly background: `var(--${string})`;
    readonly globeSpace: `var(--${string})`;
    readonly pin: `var(--${string})`;
    readonly halo: `var(--${string})`;
    readonly measureLine: `var(--${string})`;
    readonly measureFill: `var(--${string})`;
    readonly accuracyStroke: `var(--${string})`;
    readonly accuracyFill: `var(--${string})`;
    readonly loadingIndicator: `var(--${string})`;
    readonly loadingTrack: `var(--${string})`;
    readonly tileErrorBackground: `var(--${string})`;
    readonly tileErrorText: `var(--${string})`;
}
```

## Description

Each colour shows over light and dark basemaps by clearing 3:1 itself, or
by its halo (which the pin, the lines and the accuracy outline all draw)
clearing 3:1 and the colour clearing 3:1 against the halo;
`contrast.test.ts` enforces it. The fills are translucent by design, so the
outline beside them carries the contrast.

Source: [packages/theme/src/mapOverlayTokens.ts:17](https://github.com/MapCairn/mapcairn/blob/main/packages/theme/src/mapOverlayTokens.ts#L17)
