pub fn parse_color(s: &str) -> Result<Color, String>Expand description
Parse a user-typed color name into a Color. Accepts the 16
ANSI names (lowercase + dark-prefixed variants), default /
reset for terminal-default, and 6-digit hex (#cba6f7 or
cba6f7, case-insensitive) → Color::Rgb. T.9.c: hex unblocks
a theme/:set ui.* author writing a one-off truecolor without a
palette entry. A #-prefixed string that is NOT exactly 6 hex
digits, or any other unknown word, returns the unknown color
error rather than guessing.