From d8717d4951827dfeb493dc6676c25cb1711a0141 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Tue, 3 Feb 2026 06:55:52 +0000 Subject: [PATCH] Add CLI module files --- vibeguard/cli/theme.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 vibeguard/cli/theme.py diff --git a/vibeguard/cli/theme.py b/vibeguard/cli/theme.py new file mode 100644 index 0000000..42838bb --- /dev/null +++ b/vibeguard/cli/theme.py @@ -0,0 +1,41 @@ +"""VibeGuard CLI theme.""" + +from rich.theme import Theme + +THEME_DARK = Theme( + { + "critical": "bold red", + "error": "red", + "warning": "yellow", + "info": "cyan", + "pattern": "magenta", + "file": "green", + "code": "dim", + "success": "green", + "summary": "bold", + } +) + +THEME_DEFAULT = Theme( + { + "critical": "bold red", + "error": "red", + "warning": "yellow", + "info": "blue", + "pattern": "magenta", + "file": "green", + "code": "dim", + "success": "green", + "summary": "bold", + } +) + + +class VibeGuardTheme: + """Theme manager for VibeGuard output.""" + + @staticmethod + def get_theme(style: str = "default") -> Theme: + """Get the theme based on style name.""" + themes = {"default": THEME_DEFAULT, "dark": THEME_DARK} + return themes.get(style, THEME_DEFAULT)