Coverage for src / puzzletree / utils / theme / terminal_colors.py: 100.00%

3 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-12 20:35 +0000

1"""Terminal color utilities for Rich visualization.""" 

2 

3 

4def get_rich_color(label: str) -> str: 

5 """Map class labels to Catppuccin colors for Rich visualization.""" 

6 color_map = { 

7 "TP": "green", 

8 "FP": "maroon", 

9 "FN": "red", 

10 "TN": "peach", 

11 "header": "subtext1", 

12 "border": "overlay1", 

13 } 

14 return color_map.get(label, "text")