Skip to main content

make_theme

Function make_theme 

Source
pub fn make_theme(name: &str) -> Result<(), Box<dyn Error>>
Expand description

Generate theme scaffold files in themes/{name}/.

Creates:

  • themes/{name}/tokens.css — plain CSS :root { ... } block with all 23 semantic token slots
  • themes/{name}/theme.json — empty JSON object for partial intent template overrides

Returns an error if themes/{name}/ already exists.