Expand description
Style-string parser per docs/specs/theming.md §Style syntax.
Accepts whitespace-separated tokens in any order:
role:<name>— setsStyle.rolefg:<color>— setsStyle.fg(hex / named / rgb() per [parse_color])bold/italic/underline/dim— decoration flags
Empty or whitespace-only input yields Style::default(). All tokens
are case-insensitive.
Enums§
- Style
Parse Error - Parse failures; each variant carries the offending input for diagnostics.
Functions§
- parse_
style - Parse a style string. Empty / whitespace-only yields the default style. Tokens may appear in any order; duplicate tokens overwrite (last-wins within a single string).