Expand description
Backend-agnostic UI theme โ palette + sizing + type tokens.
All slots are semantic: primary, accent_a, success, etc. The theme
contains no brand-specific naming โ apps configure the concrete values.
Color slots are [r, g, b, a] sRGB components in 0.0..=1.0 (see the
note on the color pipeline in [crate::ui::brand]); the concrete UI
backend feeds them to its native format.
The same struct is used by both the editor (khora-editor) and the hub
(hub). Both install the one canonical [crate::ui::brand::khora_dark]
producer, so there is a single source of truth and the two apps cannot
drift. Default stays a neutral fallback for anything that wants a theme
without pulling in the brand.
Structsยง
- UiTheme
- Color palette and sizing tokens for any Khora UI surface.