Skip to content

Theming

Without a theme, maps use the schemap palette in light mode. Readers can switch the viewer to dark with D. To use your own colours, ask the agent (“use our brand colours: #e11d48 accent, warm background”) and it adds a theme to the map:

"theme": {
"mode": "dark",
"colors": { "accent": "#e11d48", "teal": "#14b8a6" },
"light": { "background": "#fffaf5" },
"dark": { "background": "#0c0a09", "surface": "#1c1917" }
}

The palette applies to the viewer, map.svg and exported images.

  • mode: light or dark. Opens the viewer and draws map.svg in this mode; the default is light. The reader can still switch in the viewer.
  • colors: for both modes.
  • light, dark: for one mode, over colors.

Every key you leave out keeps the default.

key colours
background the canvas
surface cards
border card borders and phase bands
text titles and values
muted subtitles, labels
edge edges
accent the main path, focus rings, buttons
security security edges and boundaries
error error edges
group group and lane fills
dot the viewer’s dot grid

Node colours, one key per hue: blue (client, start), violet (gateway, decision), teal (service, active), amber (database, waiting), red (cache, failure), orange (queue), lime (storage), slate (external, neutral), rose (security), green (success). Icon tiles are derived from the hue.

Any CSS colour: #4f46e5, rgb(79 70 229), oklch(62% 0.2 275) or a name such as teal. Values that aren’t colours are rejected.

Setting only background and surface for one mode can leave text unreadable. Set text and muted with them.