Updated Edit
On this page
ThemeColors dataclass and parse_theme for claudewheel.
#claudewheel.theme
#claudewheel.theme
Parse hex color themes into pre-computed ANSI escape sequences.
#parse_hex
python
def parse_hex(hex_str: str | None) -> tuple[int, int, int] | NoneConvert '#RRGGBB' to (R, G, B) tuple. Returns None for None/invalid input.
#_hex_to_fg
python
def _hex_to_fg(hex_str: str | None) -> strConvert hex color to ANSI foreground sequence, or empty string if None.
#_hex_to_bg
python
def _hex_to_bg(hex_str: str | None) -> strConvert hex color to ANSI background sequence, or empty string if None.
#ThemeColors
Pre-parsed ANSI escape sequences for all theme colors.
#parse_theme
python
def parse_theme(theme_dict: dict) -> ThemeColorsParse a raw theme dict into a ThemeColors instance with ANSI sequences.