pub fn from_str(theme_name: impl AsRef<str>) -> Option<ResolvedTheme>
Expand description

Try to get a theme given its path as a string.

For a list of all acceptable theme names see THEMES.

Example

assert_eq!(
    syntastica_themes::from_str("one::dark"),
    Some(syntastica_themes::one::dark()),
);