Skip to main content

Module theme

Module theme 

Source
Expand description

Visual themes for both renderers.

A Theme is a complete look: page colours, fonts, corner radius, and a flat flag that switches the chart to solid “band member” bars. Three are built in (builtins); more can be supplied at generation time via a JSON file (see load_config) and offered in the interactive page’s theme menu.

Structs§

Theme
A fully-resolved theme. String colours are emitted verbatim into CSS/SVG.
ThemeSet
Themes plus the page’s menu configuration.

Functions§

builtins
The three built-in themes, in menu order: Light, Dark, Wikipedia.
load_config
Load a theme config JSON file and combine it with the built-ins.