Skip to main content

Module theme_engine

Module theme_engine 

Source

Structs§

ResolvedTheme
ThemeBinding
ThemeDefinition

Constants§

LEGACY_PRESET_IDS
Legacy extras — available but not primary in the picker.
QPRIME_PRESET_IDS
Canonical QPrime preset IDs (theme picker foreground).

Functions§

builtin_theme_catalog
Built-in theme catalog.
collect_stylesheets
Collects stylesheets.
contrast_ratio
WCAG relative contrast for opaque #RRGGBB colours.
is_qprime_preset
true when qprime-preset.
join_theme_classes
Joins theme classes.
presentation_level
Default presentation level P0–P6 from pack.
qprime_system_token_pairs
Motion, elevation, typography, and focus tokens shared by every QPrime scope.
render_scope_tokens
Renders scope-tokens.
resolve_theme
Resolves theme.
shoelace_bridge_css
Shoelace design tokens bridged from Qualia accent/surface tokens.
spatialize_allowed
Whether Spatialize should be offered in UI for this resolved pack.
theme_binding_provenance
Human-readable provenance for inspector chips (Phase 2B).
theme_label
Theme label.
theme_motion_timeline
Motion timeline honoring sanctuary preset and resolved theme class.
theme_picker_sections
Split catalog into QPrime presets (ordered) and everything else.
theme_selection_pulse
Spring scale bump when a pane is selected (native + wasm shared helper).