Skip to main content

ContrastBackground

The colour a pair's foreground sits on. surface and surfaceRaised are translucent, so they are flattened over each backdrop first; map is the bare map itself; the page background and the map halo are fixed defaults a host cannot override; the rest are opaque roles.

This is a type alias exported by @mapcairn/theme, checked against version 0.2.0.

Signature​

import type { ContrastBackground } from "@mapcairn/theme";

type ContrastBackground = ThemeColourRole | "pageBackground" | "mapHalo" | "map";

See also​

Source: packages/theme/src/contrastPairs.ts:52