Skip to main content

Module theme

Module theme 

Source
Expand description

Theme tokens and light/dark modes.

A resolved, backend-agnostic token set (colors, spacing, typography) plus the per-widget override vocabulary. Native application lands (GTK CSS, Win32 brushes/colors, Cocoa appearance); the Backend defaults return the typed capability error until then, so a request is never silently ignored. See docs/widget-expansion-roadmap.md (“Theming and art provider”) for the design and evidence rules.

Structs§

Theme
A fully resolved theme.
ThemeCapabilities
Backend capability flags for system light/dark detection.
ThemeColors
Named colors resolved by a theme.
ThemeSpacing
Spacing scale in logical pixels.
ThemeTypography
Typography scale in points.

Enums§

HighContrastPreset
System high-contrast color schemes, modeled on the Windows contrast themes and GTK HighContrast/HighContrastInverse.
ThemeMode
Light/dark mode selector.
ThemeOverride
A per-widget theme override. Only tokens that map to real native knobs are portable today.