Skip to main content

parse_theme_metadata

Function parse_theme_metadata 

Source
pub fn parse_theme_metadata(css: &str) -> ThemeMetadata
Expand description

Extract ThemeMetadata from a theme’s raw CSS text.

Looks for declarations of the form --theme-<field>: '<value>'; (single or double quotes). Missing or malformed declarations are left as None rather than erroring — metadata is optional, descriptive data.