Skip to main content

Crate ferro_theme

Crate ferro_theme 

Source
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§

IntentModeTemplates
Display and input mode templates for a single intent.
IntentSlotTemplate
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.
ThemeTemplates
Optional intent template overrides for all 7 structural intents.

Enums§

ThemeError
Errors that can occur during theme loading.