Expand description
§Ferro Theme
Semantic theme tokens and intent template schema for Ferro.
Provides the Theme struct which holds an embedded or filesystem-loaded
CSS file (using Tailwind v4 @theme syntax) and optional ThemeTemplates
that configure how each of the 7 intents renders its slot layout.
§Example
use ferro_theme::Theme;
// Always available — no filesystem dependency
let theme = Theme::default_theme();
assert!(theme.css.contains("--color-primary"));Modules§
- token
- Fixed semantic token vocabulary for ferro-theme/v1.
Structs§
- Intent
Mode Templates - Display and input mode templates for a single intent.
- Intent
Slot Template - A slot list and optional layout name for one render mode of one intent.
- Theme
- A loaded theme: CSS tokens and optional intent template overrides.
- Theme
Templates - Optional intent template overrides for all 7 structural intents.
Enums§
- Theme
Error - Errors that can occur during theme loading.