Configuration for a map style (basemap appearance).
Two separate colour schemes can be set per style, because the map and the app UI can have different tonal backgrounds:
mapColorScheme— controls elements rendered on top of the map. Set to'dark'when the basemap is dark (e.g. night or aerial) so that overlays remain legible against it.appColorScheme— controls the app UI chrome (panels, buttons, controls). Set to'dark'when the surrounding UI should use the dark theme to complement the basemap.
These are independent. For example, an aerial basemap might use mapColorScheme: 'dark' (light overlays on dark imagery) while keeping appColorScheme unset (light panels).
Type: string
Unique identifier for the style. Used to reference the style programmatically.
Type: string
Required
URL to the style.json (Mapbox Style Specification).
Type: string
Display label for the style. Shown in style switcher UI.
Type: 'light' | 'dark'
App UI colour scheme. Controls the theme applied to panels, buttons, and controls — independent of the map itself. See Colour schemes above.
Type: 'light' | 'dark'
Map colour scheme. Sets the default values of haloColor, selectedColor, and foregroundColor when those are not explicitly provided, and signals to map overlay components which tonal range to use. See Colour schemes above.
'light'(default) — dark overlays (#0b0c0c) on a light basemap, white halo'dark'— light overlays (#ffffff) on a dark or aerial basemap, dark halo
Type: string
CSS background colour. Allows the viewport background to match the background layer of the style, preventing flash of incorrect colour during load.
Type: string
Attribution text for the map style.
Type: string
URL to logo image.
Type: string
Alt text for the logo image.
Type: string
URL to thumbnail image. Used in style switcher UI.
Type: string
Halo colour for elements rendered on top of the map (e.g. symbol outlines). Provides contrast between overlay elements and the map background.
Falls back to the mapColorScheme default when not set (#ffffff for light, #0b0c0c for dark). Injected as the --map-overlay-halo-color CSS custom property.
Type: string
Theme colour for selected state — used by map overlay components to indicate a selected feature.
Falls back to the mapColorScheme default when not set (#0b0c0c for light, #ffffff for dark). Injected as the --map-overlay-selected-color CSS custom property.
Type: string
Foreground colour for elements rendered on top of the map (e.g. text or iconography in overlay controls).
Falls back to the mapColorScheme default when not set (#0b0c0c for light, #ffffff for dark). Injected as the --map-overlay-foreground-color CSS custom property.