claudewheel v0.15.1 /claudewheel.theme
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] | None

Convert '#RRGGBB' to (R, G, B) tuple. Returns None for None/invalid input.

#_hex_to_fg

python
def _hex_to_fg(hex_str: str | None) -> str

Convert hex color to ANSI foreground sequence, or empty string if None.

#_hex_to_bg

python
def _hex_to_bg(hex_str: str | None) -> str

Convert 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) -> ThemeColors

Parse a raw theme dict into a ThemeColors instance with ANSI sequences.