Expand description
Colour themes for the dashboard: the core’s palettes as CSS custom properties.
/style.css is written against var(--bg), var(--accent) … with the Default
theme as fallback; a <style> block from css (re-emitted by the live shard
whenever the theme select changes) overrides those variables.
Functions§
- catalogue
- Every theme with its colours, for
/api/themes. - css
- CSS custom properties for the theme at
index(clamped), as one:root{…}rule. - names
- Theme names in canonical order (for the select).
- resolve
- Pick the theme: an explicit, valid
requestedname wins, otherwisesaved. - series_
var var(--sN)for a tool (pi,claude, …); the accent for anything else.