~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
refactor: modularize theme system with individual theme files
LearningCircuit9467fad81117
diff --git a/scripts/migrate_themes.py b/scripts/migrate_themes.pynew file mode 100644index 0000000000..0508e5ac3e--- /dev/null+++ b/scripts/migrate_themes.py@@ -0,0 +1,481 @@+#!/usr/bin/env python3+"""+Theme Migration Script++Extracts themes from the monolithic themes.css file into individual+theme files with TOML frontmatter in the new themes module structure.++Run from project root:+ python scripts/migrate_themes.py+"""++import re+from pathlib import Path++# Project paths+PROJECT_ROOT = Path(__file__).parent.parent+THEMES_CSS = PROJECT_ROOT / "src/local_deep_research/web/static/css/themes.css"+THEMES_DIR = PROJECT_ROOT / "src/local_deep_research/web/themes"++# Theme metadata from the current theme_helper.py+THEME_METADATA = {+ # Core themes+ "hashed": {+ "label": "Hashed",+ "icon": "fa-hashtag",+ "group": "core",+ "type": "dark",+ },+ "light": {+ "label": "Light",+ "icon": "fa-sun",+ "group": "core",+ "type": "light",+ },+ "sepia": {+ "label": "Sepia",+ "icon": "fa-book-open",+ "group": "core",+ "type": "light",+ },+ "high-contrast": {+ "label": "High Contrast",+ "icon": "fa-eye",+ "group": "core",+ "type": "dark",+ },+ "midnight": {+ "label": "Midnight",+ "icon": "fa-cloud-moon",+ "group": "core",+ "type": "dark",+ },+ # Nature themes+ "ocean": {+ "label": "Ocean",+ "icon": "fa-water",+ "group": "nature",+ "type": "dark",+ },+ "forest": {+ "label": "Forest",+ "icon": "fa-tree",+ "group": "nature",+ "type": "dark",+ },+ "sunset": {+ "label": "Sunset",+ "icon": "fa-sun",+ "group": "nature",+ "type": "dark",+ },+ "rose": {+ "label": "Rose",+ "icon": "fa-heart",+ "group": "nature",+ "type": "dark",+ },+ "lavender": {+ "label": "Lavender",+ "icon": "fa-spa",+ "group": "nature",+ "type": "dark",+ },+ # Developer themes+ "nord": {+ "label": "Nord",+ "icon": "fa-snowflake",+ "group": "dev",+ "type": "dark",+ },+ "dracula": {+ "label": "Dracula",+ "icon": "fa-ghost",+ "group": "dev",+ "type": "dark",+ },+ "monokai": {+ "label": "Monokai",+ "icon": "fa-code",+ "group": "dev",+ "type": "dark",+ },+ "solarized-dark": {+ "label": "Solarized Dark",+ "icon": "fa-adjust",+ "group": "dev",+ "type": "dark",+ },+ "solarized-light": {+ "label": "Solarized Light",+ "icon": "fa-circle",+ "group": "dev",+ "type": "light",+ },+ "gruvbox-dark": {+ "label": "Gruvbox Dark",+ "icon": "fa-square",+ "group": "dev",+ "type": "dark",+ },+ "gruvbox-light": {+ "label": "Gruvbox Light",+ "icon": "fa-square-full",+ "group": "dev",+ "type": "light",+ },+ "tokyo-night": {+ "label": "Tokyo Night",+ "icon": "fa-city",+ "group": "dev",+ "type": "dark",+ },+ "catppuccin": {+ "label": "Catppuccin",+ "icon": "fa-cat",+ "group": "dev",+ "type": "dark",+ },+ "one-dark": {+ "label": "One Dark",+ "icon": "fa-atom",+ "group": "dev",+ "type": "dark",+ },+ # Research-focused themes+ "flexoki-dark": {+ "label": "Flexoki Dark",+ "icon": "fa-pen-nib",+ "group": "research",+ "type": "dark",+ },+ "flexoki-light": {+ "label": "Flexoki Light",+ "icon": "fa-feather",+ "group": "research",+ "type": "light",+ },+ "rose-pine": {+ "label": "Rosé Pine",+ "icon": "fa-seedling",+ "group": "research",+ "type": "dark",+ },+ "rose-pine-dawn": {+ "label": "Rosé Pine Dawn",+ "icon": "fa-cloud-sun",+ "group": "research",+ "type": "light",+ },+ "everforest-dark": {+ "label": "Everforest Dark",+ "icon": "fa-leaf",+ "group": "research",+ "type": "dark",+ },+ "everforest-light": {+ "label": "Everforest Light",+ "icon": "fa-seedling",+ "group": "research",+ "type": "light",+ },+ "night-owl": {+ "label": "Night Owl",+ "icon": "fa-crow",+ "group": "research",+ "type": "dark",+ },+ "light-owl": {+ "label": "Light Owl",+ "icon": "fa-dove",+ "group": "research",+ "type": "light",+ },+ "ayu-mirage": {+ "label": "Ayu Mirage",+ "icon": "fa-mountain-sun",+ "group": "research",+ "type": "dark",+ },+ "kanagawa": {+ "label": "Kanagawa",+ "icon": "fa-torii-gate",+ "group": "research",+ "type": "dark",+ },+ "palenight": {+ "label": "Palenight",+ "icon": "fa-moon",+ "group": "research",+ "type": "dark",+ },+ "vesper": {+ "label": "Vesper",+ "icon": "fa-fire",+ "group": "research",+ "type": "dark",+ },+}++# Theme descriptions+THEME_DESCRIPTIONS = {+ "hashed": "Purple accent on dark background, created by Hashed Viking",+ "light": "Clean and bright for well-lit environments",+ "sepia": "Eye-friendly reading inspired by Solarized",+ "high-contrast": "Maximum accessibility with WCAG AAA compliance",+ "midnight": "Deep blue aesthetic for night coding",+ "ocean": "Deep sea blues and teals",+ "forest": "Natural greens inspired by woodland",+ "sunset": "Warm orange and pink tones",+ "rose": "Soft pink and magenta hues",+ "lavender": "Soft purple hues for a calm feel",+ "nord": "Arctic, north-bluish color palette",+ "dracula": "Purple and pink dark theme",+ "monokai": "Vibrant colors on dark background",+ "solarized-dark": "Ethan Schoonover's precision color scheme (dark)",+ "solarized-light": "Ethan Schoonover's precision color scheme (light)",+ "gruvbox-dark": "Retro groove colors with warm tones (dark)",+ "gruvbox-light": "Retro groove colors with warm tones (light)",+ "tokyo-night": "Neon colors inspired by Tokyo lights",+ "catppuccin": "Soothing pastel theme (Mocha variant)",+ "one-dark": "Atom editor inspired dark theme",+ "flexoki-dark": "Ink-inspired theme for prose and code",+ "flexoki-light": "Paper-inspired warm reading tones",+ "rose-pine": "Warm and soft soho vibes",+ "rose-pine-dawn": "Rosé Pine for daylight",+ "everforest-dark": "Green-based theme for eye protection",+ "everforest-light": "Soft green warmth for daytime",+ "night-owl": "Accessibility-focused for low light",+ "light-owl": "Accessibility-focused for daylight",+ "ayu-mirage": "Modern minimalist twilight aesthetic",+ "kanagawa": "Japanese-inspired, The Great Wave palette",+ "palenight": "Material Design inspired purple tones",+ "vesper": "Warm peppermint and orange accents",+}+++def extract_theme_blocks(css_content: str) -> dict[str, str]:+ """Extract individual theme blocks from the CSS content."""+ themes = {}++ # Pattern to match theme blocks: [data-theme="name"] { ... }+ # We need to handle nested braces, so we'll use a different approach+ lines = css_content.split("\n")+ current_theme = None+ current_block = []+ brace_depth = 0+ in_theme = False++ for line in lines:+ # Check for theme selector start+ theme_match = re.match(+ r'^(?::root,\s*)?\[data-theme="([^"]+)"\]\s*\{', line+ )+ if theme_match and brace_depth == 0:+ current_theme = theme_match.group(1)+ current_block = [line]+ brace_depth = line.count("{") - line.count("}")+ in_theme = True+ continue++ if in_theme:+ current_block.append(line)+ brace_depth += line.count("{") - line.count("}")++ if brace_depth <= 0:+ # End of theme block+ themes[current_theme] = "\n".join(current_block)+ current_theme = None+ current_block = []+ in_theme = False+ brace_depth = 0++ return themes+++def extract_theme_adjustments(css_content: str) -> dict[str, list[str]]:+ """Extract theme-specific adjustment rules."""+ adjustments = {}++ # Find the THEME-SPECIFIC ADJUSTMENTS section+ adjustment_start = css_content.find("/* THEME-SPECIFIC ADJUSTMENTS */")+ if adjustment_start == -1:+ adjustment_start = css_content.find("THEME-SPECIFIC ADJUSTMENTS")++ if adjustment_start == -1:+ return adjustments++ adjustment_section = css_content[adjustment_start:]++ # Find the TRANSITION section to know where adjustments end+ transition_start = adjustment_section.find(+ "/* TRANSITION FOR THEME SWITCHING */"+ )+ if transition_start == -1:+ transition_start = adjustment_section.find(+ "TRANSITION FOR THEME SWITCHING"+ )++ if transition_start != -1:+ adjustment_section = adjustment_section[:transition_start]++ # Extract rules for each theme+ lines = adjustment_section.split("\n")+ current_rules = []+ current_theme = None+ brace_depth = 0++ for line in lines:+ # Check for theme-specific rule+ theme_match = re.match(r'^\[data-theme="([^"]+)"\]', line)+ if theme_match and brace_depth == 0:+ if current_theme and current_rules:+ adjustments.setdefault(current_theme, []).extend(current_rules)+ current_theme = theme_match.group(1)+ current_rules = [line]+ brace_depth = line.count("{") - line.count("}")+ continue++ if current_theme:+ current_rules.append(line)+ brace_depth += line.count("{") - line.count("}")++ if brace_depth <= 0:+ adjustments.setdefault(current_theme, []).append(+ "\n".join(current_rules)+ )+ current_rules = []+ current_theme = None+ brace_depth = 0++ return adjustments+++def generate_frontmatter(theme_id: str) -> str:+ """Generate TOML frontmatter for a theme."""+ meta = THEME_METADATA.get(+ theme_id,+ {+ "label": theme_id.replace("-", " ").title(),+ "icon": "fa-palette",+ "group": "other",+ "type": "dark",+ },+ )++ description = THEME_DESCRIPTIONS.get(theme_id, "")++ lines = [+ "/*---",+ f'name = "{meta["label"]}"',+ f'label = "{meta["label"]}"',+ f'icon = "{meta["icon"]}"',+ f'group = "{meta["group"]}"',+ f'type = "{meta.get("type", "dark")}"',+ ]++ if description:+ lines.append(f'description = "{description}"')++ lines.append("---*/")+ lines.append("")++ return "\n".join(lines)+++def clean_theme_block(block: str, theme_id: str) -> str:+ """Clean up a theme block for the individual file."""+ # Remove any leading comments that are theme-specific+ lines = block.split("\n")+ result = []++ for line in lines:+ # Skip single-line comments before the selector+ if (+ line.strip().startswith("/*")+ and line.strip().endswith("*/")+ and not result+ ):+ continue+ result.append(line)++ return "\n".join(result)+++def write_theme_file(+ theme_id: str, css_block: str, adjustments: list[str] | None = None+):+ """Write a theme to its individual file."""+ meta = THEME_METADATA.get(theme_id, {"group": "other"})+ group = meta.get("group", "other")++ # Determine output directory+ output_dir = THEMES_DIR / group+ output_dir.mkdir(parents=True, exist_ok=True)++ # Generate content+ frontmatter = generate_frontmatter(theme_id)+ css_content = clean_theme_block(css_block, theme_id)++ # Add adjustments if any+ if adjustments:+ css_content += "\n\n/* Theme-specific adjustments */\n"+ css_content += "\n".join(adjustments)++ full_content = frontmatter + css_content + "\n"++ # Write file+ output_file = output_dir / f"{theme_id}.css"+ output_file.write_text(full_content, encoding="utf-8")+ print(f" Created: {output_file.relative_to(PROJECT_ROOT)}")+++def main():+ """Main migration function."""+ print("Theme Migration Script")+ print("=" * 50)++ # Check source file exists+ if not THEMES_CSS.exists():+ print(f"Error: Source file not found: {THEMES_CSS}")+ return 1++ # Read source CSS+ print(f"\nReading: {THEMES_CSS.relative_to(PROJECT_ROOT)}")+ css_content = THEMES_CSS.read_text(encoding="utf-8")++ # Extract theme blocks+ print("\nExtracting theme blocks...")+ theme_blocks = extract_theme_blocks(css_content)+ print(f" Found {len(theme_blocks)} themes")++ # Extract adjustments+ print("\nExtracting theme-specific adjustments...")+ adjustments = extract_theme_adjustments(css_content)+ print(f" Found adjustments for {len(adjustments)} themes")++ # Create output directories+ print("\nCreating theme files...")+ for subdir in ["core", "nature", "dev", "research"]:+ (THEMES_DIR / subdir).mkdir(parents=True, exist_ok=True)++ # Write individual theme files+ for theme_id, css_block in sorted(theme_blocks.items()):+ theme_adjustments = adjustments.get(theme_id)+ write_theme_file(theme_id, css_block, theme_adjustments)++ # Summary+ print("\n" + "=" * 50)+ print(f"Migration complete! Created {len(theme_blocks)} theme files.")+ print(f"\nTheme files are in: {THEMES_DIR.relative_to(PROJECT_ROOT)}")+ print("\nNext steps:")+ print(" 1. Review generated files")+ print(" 2. Update theme_helper.py to use new ThemeRegistry")+ print(" 3. Update app_factory.py to generate combined CSS")+ print(" 4. Run tests to verify functionality")++ return 0+++if __name__ == "__main__":+ exit(main())diff --git a/src/local_deep_research/settings/manager.py b/src/local_deep_research/settings/manager.pyindex e0d32283db..35415e4959 100644--- a/src/local_deep_research/settings/manager.py+++ b/src/local_deep_research/settings/manager.py@@ -264,12 +264,27 @@ class SettingsManager(ISettingsManager):"""Returns:The default settings, loaded from JSON.+ Theme options are dynamically injected from the theme registry."""default_settings = pkg_resources.read_text(defaults, "default_settings.json")- return json.loads(default_settings)+ settings = json.loads(default_settings)++ # Inject dynamic theme options from theme registry+ if "app.theme" in settings:+ try:+ from local_deep_research.web.themes import theme_registry++ settings["app.theme"]["options"] = (+ theme_registry.get_settings_options()+ )+ except ImportError:+ # Theme registry not available, use static options from JSON+ pass++ return settingsdef __get_typed_setting_value(self,diff --git a/src/local_deep_research/web/app_factory.py b/src/local_deep_research/web/app_factory.pyindex c4ffeadbb0..17b27ca89c 100644--- a/src/local_deep_research/web/app_factory.py+++ b/src/local_deep_research/web/app_factory.py@@ -358,6 +358,25 @@ def create_app():theme_helper.init_app(app)+ # Generate combined themes.css from individual theme files+ from .themes import theme_registry++ try:+ static_dir = Path(app.config.get("STATIC_DIR", "static"))+ themes_css_path = static_dir / "css" / "themes.css"+ combined_css = theme_registry.get_combined_css()+ themes_css_path.write_text(combined_css, encoding="utf-8")+ logger.debug(+ f"Generated themes.css with {len(theme_registry.themes)} themes"+ )+ except PermissionError:+ logger.warning(+ f"Cannot write themes.css to {themes_css_path}. "+ "Theme CSS will need to be pre-generated."+ )+ except Exception:+ logger.exception("Error generating combined themes.css")+# Register socket servicesocket_service = SocketIOService(app=app)diff --git a/src/local_deep_research/web/services/settings_manager.py b/src/local_deep_research/web/services/settings_manager.pyindex 738e8c232e..99ca289cfc 100644--- a/src/local_deep_research/web/services/settings_manager.py+++ b/src/local_deep_research/web/services/settings_manager.py@@ -150,6 +150,18 @@ class SettingsManager:except Exception as e:logger.warning(f"Error loading settings files: {e}")+ # Inject dynamic theme options from theme registry+ if "app.theme" in settings:+ try:+ from local_deep_research.web.themes import theme_registry++ settings["app.theme"]["options"] = (+ theme_registry.get_settings_options()+ )+ except ImportError:+ # Theme registry not available, use static options from JSON+ pass+logger.info(f"Loaded {len(settings)} total settings")return settingsdiff --git a/src/local_deep_research/web/static/css/themes.css b/src/local_deep_research/web/static/css/themes.cssindex a635eefac8..9eef71d9ba 100644--- a/src/local_deep_research/web/static/css/themes.css+++ b/src/local_deep_research/web/static/css/themes.css@@ -1,9 +1,10 @@-/* ====================================- THEME DEFINITIONS- Local Deep Research Multi-Theme System- ==================================== */+/* Auto-generated theme CSS - Do not edit directly */+/* Generated from 33 theme files */-/* Hashed Theme (Default) - Purple accent on dark background, created by Hashed Viking */++/* === Core Themes === */++/* Theme: Hashed */:root,[data-theme="hashed"] {--bg-primary: #121212;@@ -51,7 +52,72 @@--card-bg: var(--bg-secondary);}-/* Light Theme - Clean and bright */+/* Theme: High Contrast */+[data-theme="high-contrast"] {+ --bg-primary: #000000;+ --bg-secondary: #0a0a0a;+ --bg-tertiary: #1a1a1a;+ --accent-primary: #ffff00;+ --accent-secondary: #00ffff;+ --accent-tertiary: #00ff00;+ --text-primary: #ffffff;+ --text-secondary: #e0e0e0;+ --text-muted: #c0c0c0;+ --border-color: #ffffff;+ --success-color: #00ff00;+ --warning-color: #ffff00;+ --error-color: #ff0000;++ /* RGB variants */+ --bg-primary-rgb: 0, 0, 0;+ --bg-secondary-rgb: 10, 10, 10;+ --bg-tertiary-rgb: 26, 26, 26;+ --accent-primary-rgb: 255, 255, 0;+ --accent-secondary-rgb: 0, 255, 255;+ --accent-tertiary-rgb: 0, 255, 0;+ --text-primary-rgb: 255, 255, 255;+ --text-secondary-rgb: 224, 224, 224;+ --text-muted-rgb: 192, 192, 192;+ --border-color-rgb: 255, 255, 255;+ --success-color-rgb: 0, 255, 0;+ --warning-color-rgb: 255, 255, 0;+ --error-color-rgb: 255, 0, 0;++ /* Shadows and effects - minimal for clarity */+ --card-shadow: 0 0 0 2px #ffffff;+ --glow-effect: none;+ --gradient-bg: none;+ --overlay-color: rgba(0, 0, 0, 0.8);+ --backdrop-blur: none;++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;++ /* Aliases */+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}++/* Theme-specific adjustments */+[data-theme="high-contrast"] a {+ color: var(--accent-secondary);+ text-decoration: underline;+}+[data-theme="high-contrast"] a:hover {+ color: var(--accent-tertiary);+}+[data-theme="high-contrast"] *:focus {+ outline: 3px solid var(--accent-primary) !important;+ outline-offset: 2px;+}+[data-theme="high-contrast"] button:hover,+[data-theme="high-contrast"] .btn:hover {+ background: var(--accent-primary) !important;+ color: var(--bg-primary) !important;+}++/* Theme: Light */[data-theme="light"] {--bg-primary: #f8f9fa;--bg-secondary: #ffffff;@@ -98,101 +164,15 @@--card-bg: var(--bg-secondary);}-/* Sepia Theme - Eye-friendly reading (Solarized-inspired) */-[data-theme="sepia"] {- --bg-primary: #f4ecd8;- --bg-secondary: #fdf6e3;- --bg-tertiary: #eee8d5;- --accent-primary: #b58900;- --accent-secondary: #cb4b16;- --accent-tertiary: #268bd2;- --text-primary: #5c5144;- --text-secondary: #657b83;- --text-muted: #93a1a1;- --border-color: #d3c6a6;- --success-color: #859900;- --warning-color: #b58900;- --error-color: #dc322f;-- /* RGB variants */- --bg-primary-rgb: 244, 236, 216;- --bg-secondary-rgb: 253, 246, 227;- --bg-tertiary-rgb: 238, 232, 213;- --accent-primary-rgb: 181, 137, 0;- --accent-secondary-rgb: 203, 75, 22;- --accent-tertiary-rgb: 38, 139, 210;- --text-primary-rgb: 92, 81, 68;- --text-secondary-rgb: 101, 123, 131;- --text-muted-rgb: 147, 161, 161;- --border-color-rgb: 211, 198, 166;- --success-color-rgb: 133, 153, 0;- --warning-color-rgb: 181, 137, 0;- --error-color-rgb: 220, 50, 47;-- /* Shadows and effects */- --card-shadow: 0 2px 10px rgba(101, 82, 51, 0.1);- --glow-effect: 0 0 10px rgba(181, 137, 0, 0.15);- --gradient-bg: linear-gradient(135deg, #eee8d5 0%, #f4ecd8 100%);- --overlay-color: rgba(92, 81, 68, 0.4);- --backdrop-blur: blur(10px);-- /* Theme-aware colors for shadows and highlights */- --shadow-color-rgb: 0, 0, 0;- --highlight-color-rgb: 0, 0, 0;-- /* Aliases */- --primary-color: var(--accent-primary);- --card-bg: var(--bg-secondary);+/* Theme-specific adjustments */+[data-theme="light"] ::-webkit-scrollbar-track {+ background: var(--bg-tertiary);}--/* High Contrast Theme - Maximum accessibility (WCAG AAA) */-[data-theme="high-contrast"] {- --bg-primary: #000000;- --bg-secondary: #0a0a0a;- --bg-tertiary: #1a1a1a;- --accent-primary: #ffff00;- --accent-secondary: #00ffff;- --accent-tertiary: #00ff00;- --text-primary: #ffffff;- --text-secondary: #e0e0e0;- --text-muted: #c0c0c0;- --border-color: #ffffff;- --success-color: #00ff00;- --warning-color: #ffff00;- --error-color: #ff0000;-- /* RGB variants */- --bg-primary-rgb: 0, 0, 0;- --bg-secondary-rgb: 10, 10, 10;- --bg-tertiary-rgb: 26, 26, 26;- --accent-primary-rgb: 255, 255, 0;- --accent-secondary-rgb: 0, 255, 255;- --accent-tertiary-rgb: 0, 255, 0;- --text-primary-rgb: 255, 255, 255;- --text-secondary-rgb: 224, 224, 224;- --text-muted-rgb: 192, 192, 192;- --border-color-rgb: 255, 255, 255;- --success-color-rgb: 0, 255, 0;- --warning-color-rgb: 255, 255, 0;- --error-color-rgb: 255, 0, 0;-- /* Shadows and effects - minimal for clarity */- --card-shadow: 0 0 0 2px #ffffff;- --glow-effect: none;- --gradient-bg: none;- --overlay-color: rgba(0, 0, 0, 0.8);- --backdrop-blur: none;-- /* Theme-aware colors for shadows and highlights */- --shadow-color-rgb: 0, 0, 0;- --highlight-color-rgb: 255, 255, 255;-- /* Aliases */- --primary-color: var(--accent-primary);- --card-bg: var(--bg-secondary);+[data-theme="light"] ::-webkit-scrollbar-thumb {+ background: var(--accent-primary);}-/* Midnight Blue Theme - Deep blue aesthetic */+/* Theme: Midnight */[data-theme="midnight"] {--bg-primary: #0d1b2a;--bg-secondary: #1b263b;@@ -239,50 +219,65 @@--card-bg: var(--bg-secondary);}-/* Ocean Theme - Deep sea blues and teals */-[data-theme="ocean"] {- --bg-primary: #0c1821;- --bg-secondary: #1b2838;- --bg-tertiary: #2a3f54;- --accent-primary: #00b4d8;- --accent-secondary: #0096c7;- --accent-tertiary: #48cae4;- --text-primary: #e0f7fa;- --text-secondary: #b2ebf2;- --text-muted: #80deea;- --border-color: #0077b6;- --success-color: #00e676;- --warning-color: #ffd54f;- --error-color: #ff5252;+/* Theme: Sepia */+[data-theme="sepia"] {+ --bg-primary: #f4ecd8;+ --bg-secondary: #fdf6e3;+ --bg-tertiary: #eee8d5;+ --accent-primary: #b58900;+ --accent-secondary: #cb4b16;+ --accent-tertiary: #268bd2;+ --text-primary: #5c5144;+ --text-secondary: #657b83;+ --text-muted: #93a1a1;+ --border-color: #d3c6a6;+ --success-color: #859900;+ --warning-color: #b58900;+ --error-color: #dc322f;- --bg-primary-rgb: 12, 24, 33;- --bg-secondary-rgb: 27, 40, 56;- --bg-tertiary-rgb: 42, 63, 84;- --accent-primary-rgb: 0, 180, 216;- --accent-secondary-rgb: 0, 150, 199;- --accent-tertiary-rgb: 72, 202, 228;- --text-primary-rgb: 224, 247, 250;- --text-secondary-rgb: 178, 235, 242;- --text-muted-rgb: 128, 222, 234;- --border-color-rgb: 0, 119, 182;- --success-color-rgb: 0, 230, 118;- --warning-color-rgb: 255, 213, 79;- --error-color-rgb: 255, 82, 82;+ /* RGB variants */+ --bg-primary-rgb: 244, 236, 216;+ --bg-secondary-rgb: 253, 246, 227;+ --bg-tertiary-rgb: 238, 232, 213;+ --accent-primary-rgb: 181, 137, 0;+ --accent-secondary-rgb: 203, 75, 22;+ --accent-tertiary-rgb: 38, 139, 210;+ --text-primary-rgb: 92, 81, 68;+ --text-secondary-rgb: 101, 123, 131;+ --text-muted-rgb: 147, 161, 161;+ --border-color-rgb: 211, 198, 166;+ --success-color-rgb: 133, 153, 0;+ --warning-color-rgb: 181, 137, 0;+ --error-color-rgb: 220, 50, 47;- --card-shadow: 0 4px 20px rgba(0, 119, 182, 0.3);- --glow-effect: 0 0 15px rgba(0, 180, 216, 0.3);- --gradient-bg: linear-gradient(135deg, #1b2838 0%, #0c1821 100%);- --overlay-color: rgba(12, 24, 33, 0.7);+ /* Shadows and effects */+ --card-shadow: 0 2px 10px rgba(101, 82, 51, 0.1);+ --glow-effect: 0 0 10px rgba(181, 137, 0, 0.15);+ --gradient-bg: linear-gradient(135deg, #eee8d5 0%, #f4ecd8 100%);+ --overlay-color: rgba(92, 81, 68, 0.4);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */--shadow-color-rgb: 0, 0, 0;- --highlight-color-rgb: 255, 255, 255;+ --highlight-color-rgb: 0, 0, 0;++ /* Aliases */--primary-color: var(--accent-primary);--card-bg: var(--bg-secondary);}-/* Forest Theme - Natural greens */+/* Theme-specific adjustments */+[data-theme="sepia"] a {+ color: var(--accent-tertiary);+}+[data-theme="sepia"] a:hover {+ color: var(--accent-secondary);+}+++/* === Nature === */++/* Theme: Forest */[data-theme="forest"] {--bg-primary: #1a2f1a;--bg-secondary: #243524;@@ -325,40 +320,83 @@--card-bg: var(--bg-secondary);}-/* Sunset Theme - Warm orange and pink */-[data-theme="sunset"] {- --bg-primary: #1a1a2e;- --bg-secondary: #2d2d44;- --bg-tertiary: #3d3d5c;- --accent-primary: #ff6b6b;- --accent-secondary: #feca57;- --accent-tertiary: #ff9ff3;- --text-primary: #ffeaa7;- --text-secondary: #fdcb6e;- --text-muted: #fab1a0;- --border-color: #e17055;- --success-color: #00d2d3;- --warning-color: #feca57;- --error-color: #ff6b6b;-- --bg-primary-rgb: 26, 26, 46;- --bg-secondary-rgb: 45, 45, 68;- --bg-tertiary-rgb: 61, 61, 92;- --accent-primary-rgb: 255, 107, 107;- --accent-secondary-rgb: 254, 202, 87;- --accent-tertiary-rgb: 255, 159, 243;- --text-primary-rgb: 255, 234, 167;- --text-secondary-rgb: 253, 203, 110;- --text-muted-rgb: 250, 177, 160;- --border-color-rgb: 225, 112, 85;- --success-color-rgb: 0, 210, 211;- --warning-color-rgb: 254, 202, 87;- --error-color-rgb: 255, 107, 107;+/* Theme: Lavender */+[data-theme="lavender"] {+ --bg-primary: #1e1e3f;+ --bg-secondary: #2a2a54;+ --bg-tertiary: #363669;+ --accent-primary: #b39ddb;+ --accent-secondary: #9575cd;+ --accent-tertiary: #7e57c2;+ --text-primary: #ede7f6;+ --text-secondary: #d1c4e9;+ --text-muted: #b39ddb;+ --border-color: #7e57c2;+ --success-color: #69f0ae;+ --warning-color: #ffe082;+ --error-color: #ff5252;- --card-shadow: 0 4px 20px rgba(225, 112, 85, 0.3);- --glow-effect: 0 0 15px rgba(255, 107, 107, 0.3);- --gradient-bg: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);- --overlay-color: rgba(26, 26, 46, 0.7);+ --bg-primary-rgb: 30, 30, 63;+ --bg-secondary-rgb: 42, 42, 84;+ --bg-tertiary-rgb: 54, 54, 105;+ --accent-primary-rgb: 179, 157, 219;+ --accent-secondary-rgb: 149, 117, 205;+ --accent-tertiary-rgb: 126, 87, 194;+ --text-primary-rgb: 237, 231, 246;+ --text-secondary-rgb: 209, 196, 233;+ --text-muted-rgb: 179, 157, 219;+ --border-color-rgb: 126, 87, 194;+ --success-color-rgb: 105, 240, 174;+ --warning-color-rgb: 255, 224, 130;+ --error-color-rgb: 255, 82, 82;++ --card-shadow: 0 4px 20px rgba(126, 87, 194, 0.3);+ --glow-effect: 0 0 15px rgba(179, 157, 219, 0.3);+ --gradient-bg: linear-gradient(135deg, #2a2a54 0%, #1e1e3f 100%);+ --overlay-color: rgba(30, 30, 63, 0.7);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}++/* Theme: Ocean */+[data-theme="ocean"] {+ --bg-primary: #0c1821;+ --bg-secondary: #1b2838;+ --bg-tertiary: #2a3f54;+ --accent-primary: #00b4d8;+ --accent-secondary: #0096c7;+ --accent-tertiary: #48cae4;+ --text-primary: #e0f7fa;+ --text-secondary: #b2ebf2;+ --text-muted: #80deea;+ --border-color: #0077b6;+ --success-color: #00e676;+ --warning-color: #ffd54f;+ --error-color: #ff5252;++ --bg-primary-rgb: 12, 24, 33;+ --bg-secondary-rgb: 27, 40, 56;+ --bg-tertiary-rgb: 42, 63, 84;+ --accent-primary-rgb: 0, 180, 216;+ --accent-secondary-rgb: 0, 150, 199;+ --accent-tertiary-rgb: 72, 202, 228;+ --text-primary-rgb: 224, 247, 250;+ --text-secondary-rgb: 178, 235, 242;+ --text-muted-rgb: 128, 222, 234;+ --border-color-rgb: 0, 119, 182;+ --success-color-rgb: 0, 230, 118;+ --warning-color-rgb: 255, 213, 79;+ --error-color-rgb: 255, 82, 82;++ --card-shadow: 0 4px 20px rgba(0, 119, 182, 0.3);+ --glow-effect: 0 0 15px rgba(0, 180, 216, 0.3);+ --gradient-bg: linear-gradient(135deg, #1b2838 0%, #0c1821 100%);+ --overlay-color: rgba(12, 24, 33, 0.7);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -368,7 +406,7 @@--card-bg: var(--bg-secondary);}-/* Rose Theme - Pink and magenta */+/* Theme: Rose */[data-theme="rose"] {--bg-primary: #2d1b2d;--bg-secondary: #3d2640;@@ -411,40 +449,40 @@--card-bg: var(--bg-secondary);}-/* Lavender Theme - Soft purple hues */-[data-theme="lavender"] {- --bg-primary: #1e1e3f;- --bg-secondary: #2a2a54;- --bg-tertiary: #363669;- --accent-primary: #b39ddb;- --accent-secondary: #9575cd;- --accent-tertiary: #7e57c2;- --text-primary: #ede7f6;- --text-secondary: #d1c4e9;- --text-muted: #b39ddb;- --border-color: #7e57c2;- --success-color: #69f0ae;- --warning-color: #ffe082;- --error-color: #ff5252;+/* Theme: Sunset */+[data-theme="sunset"] {+ --bg-primary: #1a1a2e;+ --bg-secondary: #2d2d44;+ --bg-tertiary: #3d3d5c;+ --accent-primary: #ff6b6b;+ --accent-secondary: #feca57;+ --accent-tertiary: #ff9ff3;+ --text-primary: #ffeaa7;+ --text-secondary: #fdcb6e;+ --text-muted: #fab1a0;+ --border-color: #e17055;+ --success-color: #00d2d3;+ --warning-color: #feca57;+ --error-color: #ff6b6b;- --bg-primary-rgb: 30, 30, 63;- --bg-secondary-rgb: 42, 42, 84;- --bg-tertiary-rgb: 54, 54, 105;- --accent-primary-rgb: 179, 157, 219;- --accent-secondary-rgb: 149, 117, 205;- --accent-tertiary-rgb: 126, 87, 194;- --text-primary-rgb: 237, 231, 246;- --text-secondary-rgb: 209, 196, 233;- --text-muted-rgb: 179, 157, 219;- --border-color-rgb: 126, 87, 194;- --success-color-rgb: 105, 240, 174;- --warning-color-rgb: 255, 224, 130;- --error-color-rgb: 255, 82, 82;+ --bg-primary-rgb: 26, 26, 46;+ --bg-secondary-rgb: 45, 45, 68;+ --bg-tertiary-rgb: 61, 61, 92;+ --accent-primary-rgb: 255, 107, 107;+ --accent-secondary-rgb: 254, 202, 87;+ --accent-tertiary-rgb: 255, 159, 243;+ --text-primary-rgb: 255, 234, 167;+ --text-secondary-rgb: 253, 203, 110;+ --text-muted-rgb: 250, 177, 160;+ --border-color-rgb: 225, 112, 85;+ --success-color-rgb: 0, 210, 211;+ --warning-color-rgb: 254, 202, 87;+ --error-color-rgb: 255, 107, 107;- --card-shadow: 0 4px 20px rgba(126, 87, 194, 0.3);- --glow-effect: 0 0 15px rgba(179, 157, 219, 0.3);- --gradient-bg: linear-gradient(135deg, #2a2a54 0%, #1e1e3f 100%);- --overlay-color: rgba(30, 30, 63, 0.7);+ --card-shadow: 0 4px 20px rgba(225, 112, 85, 0.3);+ --glow-effect: 0 0 15px rgba(255, 107, 107, 0.3);+ --gradient-bg: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);+ --overlay-color: rgba(26, 26, 46, 0.7);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -454,40 +492,43 @@--card-bg: var(--bg-secondary);}-/* Nord Theme - Arctic blues (Nord palette) */-[data-theme="nord"] {- --bg-primary: #2e3440;- --bg-secondary: #3b4252;- --bg-tertiary: #434c5e;- --accent-primary: #88c0d0;- --accent-secondary: #81a1c1;- --accent-tertiary: #5e81ac;- --text-primary: #eceff4;- --text-secondary: #e5e9f0;- --text-muted: #d8dee9;- --border-color: #4c566a;- --success-color: #a3be8c;- --warning-color: #ebcb8b;- --error-color: #bf616a;- --bg-primary-rgb: 46, 52, 64;- --bg-secondary-rgb: 59, 66, 82;- --bg-tertiary-rgb: 67, 76, 94;- --accent-primary-rgb: 136, 192, 208;- --accent-secondary-rgb: 129, 161, 193;- --accent-tertiary-rgb: 94, 129, 172;- --text-primary-rgb: 236, 239, 244;- --text-secondary-rgb: 229, 233, 240;- --text-muted-rgb: 216, 222, 233;- --border-color-rgb: 76, 86, 106;- --success-color-rgb: 163, 190, 140;- --warning-color-rgb: 235, 203, 139;- --error-color-rgb: 191, 97, 106;+/* === Developer Themes === */- --card-shadow: 0 4px 20px rgba(46, 52, 64, 0.5);- --glow-effect: 0 0 15px rgba(136, 192, 208, 0.2);- --gradient-bg: linear-gradient(135deg, #3b4252 0%, #2e3440 100%);- --overlay-color: rgba(46, 52, 64, 0.7);+/* Theme: Catppuccin */+[data-theme="catppuccin"] {+ --bg-primary: #1e1e2e;+ --bg-secondary: #313244;+ --bg-tertiary: #45475a;+ --accent-primary: #cba6f7;+ --accent-secondary: #f5c2e7;+ --accent-tertiary: #89dceb;+ --text-primary: #cdd6f4;+ --text-secondary: #bac2de;+ --text-muted: #6c7086;+ --border-color: #585b70;+ --success-color: #a6e3a1;+ --warning-color: #f9e2af;+ --error-color: #f38ba8;++ --bg-primary-rgb: 30, 30, 46;+ --bg-secondary-rgb: 49, 50, 68;+ --bg-tertiary-rgb: 69, 71, 90;+ --accent-primary-rgb: 203, 166, 247;+ --accent-secondary-rgb: 245, 194, 231;+ --accent-tertiary-rgb: 137, 220, 235;+ --text-primary-rgb: 205, 214, 244;+ --text-secondary-rgb: 186, 194, 222;+ --text-muted-rgb: 108, 112, 134;+ --border-color-rgb: 88, 91, 112;+ --success-color-rgb: 166, 227, 161;+ --warning-color-rgb: 249, 226, 175;+ --error-color-rgb: 243, 139, 168;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);+ --glow-effect: 0 0 15px rgba(203, 166, 247, 0.2);+ --gradient-bg: linear-gradient(135deg, #313244 0%, #1e1e2e 100%);+ --overlay-color: rgba(30, 30, 46, 0.8);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -497,7 +538,7 @@--card-bg: var(--bg-secondary);}-/* Dracula Theme - Purple/pink dark */+/* Theme: Dracula */[data-theme="dracula"] {--bg-primary: #282a36;--bg-secondary: #343746;@@ -540,150 +581,21 @@--card-bg: var(--bg-secondary);}-/* Monokai Theme - Vibrant on dark */-[data-theme="monokai"] {- --bg-primary: #272822;- --bg-secondary: #3e3d32;- --bg-tertiary: #49483e;- --accent-primary: #a6e22e;- --accent-secondary: #f92672;- --accent-tertiary: #66d9ef;- --text-primary: #f8f8f2;- --text-secondary: #cfcfc2;- --text-muted: #75715e;- --border-color: #49483e;- --success-color: #a6e22e;- --warning-color: #e6db74;- --error-color: #f92672;-- --bg-primary-rgb: 39, 40, 34;- --bg-secondary-rgb: 62, 61, 50;- --bg-tertiary-rgb: 73, 72, 62;- --accent-primary-rgb: 166, 226, 46;- --accent-secondary-rgb: 249, 38, 114;- --accent-tertiary-rgb: 102, 217, 239;- --text-primary-rgb: 248, 248, 242;- --text-secondary-rgb: 207, 207, 194;- --text-muted-rgb: 117, 113, 94;- --border-color-rgb: 73, 72, 62;- --success-color-rgb: 166, 226, 46;- --warning-color-rgb: 230, 219, 116;- --error-color-rgb: 249, 38, 114;-- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);- --glow-effect: 0 0 15px rgba(166, 226, 46, 0.2);- --gradient-bg: linear-gradient(135deg, #3e3d32 0%, #272822 100%);- --overlay-color: rgba(39, 40, 34, 0.8);- --backdrop-blur: blur(10px);-- /* Theme-aware colors for shadows and highlights */- --shadow-color-rgb: 0, 0, 0;- --highlight-color-rgb: 255, 255, 255;- --primary-color: var(--accent-primary);- --card-bg: var(--bg-secondary);-}--/* Solarized Dark Theme */-[data-theme="solarized-dark"] {- --bg-primary: #002b36;- --bg-secondary: #073642;- --bg-tertiary: #0a4351;- --accent-primary: #268bd2;- --accent-secondary: #2aa198;- --accent-tertiary: #859900;- --text-primary: #fdf6e3;- --text-secondary: #eee8d5;- --text-muted: #93a1a1;- --border-color: #586e75;- --success-color: #859900;- --warning-color: #b58900;- --error-color: #dc322f;-- --bg-primary-rgb: 0, 43, 54;- --bg-secondary-rgb: 7, 54, 66;- --bg-tertiary-rgb: 10, 67, 81;- --accent-primary-rgb: 38, 139, 210;- --accent-secondary-rgb: 42, 161, 152;- --accent-tertiary-rgb: 133, 153, 0;- --text-primary-rgb: 253, 246, 227;- --text-secondary-rgb: 238, 232, 213;- --text-muted-rgb: 147, 161, 161;- --border-color-rgb: 88, 110, 117;- --success-color-rgb: 133, 153, 0;- --warning-color-rgb: 181, 137, 0;- --error-color-rgb: 220, 50, 47;-- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);- --glow-effect: 0 0 15px rgba(38, 139, 210, 0.2);- --gradient-bg: linear-gradient(135deg, #073642 0%, #002b36 100%);- --overlay-color: rgba(0, 43, 54, 0.8);- --backdrop-blur: blur(10px);-- /* Theme-aware colors for shadows and highlights */- --shadow-color-rgb: 0, 0, 0;- --highlight-color-rgb: 255, 255, 255;- --primary-color: var(--accent-primary);- --card-bg: var(--bg-secondary);-}--/* Solarized Light Theme */-[data-theme="solarized-light"] {- --bg-primary: #fdf6e3;- --bg-secondary: #eee8d5;- --bg-tertiary: #ddd6c3;- --accent-primary: #268bd2;- --accent-secondary: #2aa198;- --accent-tertiary: #859900;- --text-primary: #073642;- --text-secondary: #586e75;- --text-muted: #93a1a1;- --border-color: #93a1a1;- --success-color: #859900;- --warning-color: #b58900;- --error-color: #dc322f;-- --bg-primary-rgb: 253, 246, 227;- --bg-secondary-rgb: 238, 232, 213;- --bg-tertiary-rgb: 221, 214, 195;- --accent-primary-rgb: 38, 139, 210;- --accent-secondary-rgb: 42, 161, 152;- --accent-tertiary-rgb: 133, 153, 0;- --text-primary-rgb: 7, 54, 66;- --text-secondary-rgb: 88, 110, 117;- --text-muted-rgb: 147, 161, 161;- --border-color-rgb: 147, 161, 161;- --success-color-rgb: 133, 153, 0;- --warning-color-rgb: 181, 137, 0;- --error-color-rgb: 220, 50, 47;-- --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);- --glow-effect: 0 0 10px rgba(38, 139, 210, 0.15);- --gradient-bg: linear-gradient(135deg, #eee8d5 0%, #fdf6e3 100%);- --overlay-color: rgba(7, 54, 66, 0.3);- --backdrop-blur: blur(10px);-- /* Theme-aware colors for shadows and highlights */- --shadow-color-rgb: 0, 0, 0;- --highlight-color-rgb: 0, 0, 0;- --primary-color: var(--accent-primary);- --card-bg: var(--bg-secondary);-}--/* Gruvbox Dark Theme */-[data-theme="gruvbox-dark"] {- --bg-primary: #282828;- --bg-secondary: #3c3836;- --bg-tertiary: #504945;- --accent-primary: #fe8019;- --accent-secondary: #fabd2f;- --accent-tertiary: #83a598;- --text-primary: #ebdbb2;- --text-secondary: #d5c4a1;- --text-muted: #a89984;- --border-color: #665c54;- --success-color: #b8bb26;- --warning-color: #fabd2f;- --error-color: #fb4934;+/* Theme: Gruvbox Dark */+[data-theme="gruvbox-dark"] {+ --bg-primary: #282828;+ --bg-secondary: #3c3836;+ --bg-tertiary: #504945;+ --accent-primary: #fe8019;+ --accent-secondary: #fabd2f;+ --accent-tertiary: #83a598;+ --text-primary: #ebdbb2;+ --text-secondary: #d5c4a1;+ --text-muted: #a89984;+ --border-color: #665c54;+ --success-color: #b8bb26;+ --warning-color: #fabd2f;+ --error-color: #fb4934;--bg-primary-rgb: 40, 40, 40;--bg-secondary-rgb: 60, 56, 54;@@ -712,7 +624,7 @@--card-bg: var(--bg-secondary);}-/* Gruvbox Light Theme */+/* Theme: Gruvbox Light */[data-theme="gruvbox-light"] {--bg-primary: #fbf1c7;--bg-secondary: #ebdbb2;@@ -755,40 +667,40 @@--card-bg: var(--bg-secondary);}-/* Tokyo Night Theme - Neon on dark */-[data-theme="tokyo-night"] {- --bg-primary: #1a1b26;- --bg-secondary: #24283b;- --bg-tertiary: #343b58;- --accent-primary: #7aa2f7;- --accent-secondary: #bb9af7;- --accent-tertiary: #7dcfff;- --text-primary: #c0caf5;- --text-secondary: #a9b1d6;- --text-muted: #565f89;- --border-color: #414868;- --success-color: #9ece6a;- --warning-color: #e0af68;- --error-color: #f7768e;+/* Theme: Monokai */+[data-theme="monokai"] {+ --bg-primary: #272822;+ --bg-secondary: #3e3d32;+ --bg-tertiary: #49483e;+ --accent-primary: #a6e22e;+ --accent-secondary: #f92672;+ --accent-tertiary: #66d9ef;+ --text-primary: #f8f8f2;+ --text-secondary: #cfcfc2;+ --text-muted: #75715e;+ --border-color: #49483e;+ --success-color: #a6e22e;+ --warning-color: #e6db74;+ --error-color: #f92672;- --bg-primary-rgb: 26, 27, 38;- --bg-secondary-rgb: 36, 40, 59;- --bg-tertiary-rgb: 52, 59, 88;- --accent-primary-rgb: 122, 162, 247;- --accent-secondary-rgb: 187, 154, 247;- --accent-tertiary-rgb: 125, 207, 255;- --text-primary-rgb: 192, 202, 245;- --text-secondary-rgb: 169, 177, 214;- --text-muted-rgb: 86, 95, 137;- --border-color-rgb: 65, 72, 104;- --success-color-rgb: 158, 206, 106;- --warning-color-rgb: 224, 175, 104;- --error-color-rgb: 247, 118, 142;+ --bg-primary-rgb: 39, 40, 34;+ --bg-secondary-rgb: 62, 61, 50;+ --bg-tertiary-rgb: 73, 72, 62;+ --accent-primary-rgb: 166, 226, 46;+ --accent-secondary-rgb: 249, 38, 114;+ --accent-tertiary-rgb: 102, 217, 239;+ --text-primary-rgb: 248, 248, 242;+ --text-secondary-rgb: 207, 207, 194;+ --text-muted-rgb: 117, 113, 94;+ --border-color-rgb: 73, 72, 62;+ --success-color-rgb: 166, 226, 46;+ --warning-color-rgb: 230, 219, 116;+ --error-color-rgb: 249, 38, 114;--card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);- --glow-effect: 0 0 15px rgba(122, 162, 247, 0.3);- --gradient-bg: linear-gradient(135deg, #24283b 0%, #1a1b26 100%);- --overlay-color: rgba(26, 27, 38, 0.8);+ --glow-effect: 0 0 15px rgba(166, 226, 46, 0.2);+ --gradient-bg: linear-gradient(135deg, #3e3d32 0%, #272822 100%);+ --overlay-color: rgba(39, 40, 34, 0.8);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -798,40 +710,40 @@--card-bg: var(--bg-secondary);}-/* Catppuccin Mocha Theme - Pastel dark */-[data-theme="catppuccin"] {- --bg-primary: #1e1e2e;- --bg-secondary: #313244;- --bg-tertiary: #45475a;- --accent-primary: #cba6f7;- --accent-secondary: #f5c2e7;- --accent-tertiary: #89dceb;- --text-primary: #cdd6f4;- --text-secondary: #bac2de;- --text-muted: #6c7086;- --border-color: #585b70;- --success-color: #a6e3a1;- --warning-color: #f9e2af;- --error-color: #f38ba8;+/* Theme: Nord */+[data-theme="nord"] {+ --bg-primary: #2e3440;+ --bg-secondary: #3b4252;+ --bg-tertiary: #434c5e;+ --accent-primary: #88c0d0;+ --accent-secondary: #81a1c1;+ --accent-tertiary: #5e81ac;+ --text-primary: #eceff4;+ --text-secondary: #e5e9f0;+ --text-muted: #d8dee9;+ --border-color: #4c566a;+ --success-color: #a3be8c;+ --warning-color: #ebcb8b;+ --error-color: #bf616a;- --bg-primary-rgb: 30, 30, 46;- --bg-secondary-rgb: 49, 50, 68;- --bg-tertiary-rgb: 69, 71, 90;- --accent-primary-rgb: 203, 166, 247;- --accent-secondary-rgb: 245, 194, 231;- --accent-tertiary-rgb: 137, 220, 235;- --text-primary-rgb: 205, 214, 244;- --text-secondary-rgb: 186, 194, 222;- --text-muted-rgb: 108, 112, 134;- --border-color-rgb: 88, 91, 112;- --success-color-rgb: 166, 227, 161;- --warning-color-rgb: 249, 226, 175;- --error-color-rgb: 243, 139, 168;+ --bg-primary-rgb: 46, 52, 64;+ --bg-secondary-rgb: 59, 66, 82;+ --bg-tertiary-rgb: 67, 76, 94;+ --accent-primary-rgb: 136, 192, 208;+ --accent-secondary-rgb: 129, 161, 193;+ --accent-tertiary-rgb: 94, 129, 172;+ --text-primary-rgb: 236, 239, 244;+ --text-secondary-rgb: 229, 233, 240;+ --text-muted-rgb: 216, 222, 233;+ --border-color-rgb: 76, 86, 106;+ --success-color-rgb: 163, 190, 140;+ --warning-color-rgb: 235, 203, 139;+ --error-color-rgb: 191, 97, 106;- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);- --glow-effect: 0 0 15px rgba(203, 166, 247, 0.2);- --gradient-bg: linear-gradient(135deg, #313244 0%, #1e1e2e 100%);- --overlay-color: rgba(30, 30, 46, 0.8);+ --card-shadow: 0 4px 20px rgba(46, 52, 64, 0.5);+ --glow-effect: 0 0 15px rgba(136, 192, 208, 0.2);+ --gradient-bg: linear-gradient(135deg, #3b4252 0%, #2e3440 100%);+ --overlay-color: rgba(46, 52, 64, 0.7);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -841,7 +753,7 @@--card-bg: var(--bg-secondary);}-/* One Dark Theme - Atom inspired */+/* Theme: One Dark */[data-theme="one-dark"] {--bg-primary: #21252b;--bg-secondary: #282c34;@@ -884,40 +796,40 @@--card-bg: var(--bg-secondary);}-/* Flexoki Dark Theme - Ink-inspired for prose and code */-[data-theme="flexoki-dark"] {- --bg-primary: #100F0F;- --bg-secondary: #1C1B1A;- --bg-tertiary: #282726;- --accent-primary: #DA702C;- --accent-secondary: #879A39;- --accent-tertiary: #4385BE;- --text-primary: #CECDC3;- --text-secondary: #B7B5AC;- --text-muted: #878580;- --border-color: #403E3C;- --success-color: #879A39;- --warning-color: #D0A215;- --error-color: #D14D41;-- --bg-primary-rgb: 16, 15, 15;- --bg-secondary-rgb: 28, 27, 26;- --bg-tertiary-rgb: 40, 39, 38;- --accent-primary-rgb: 218, 112, 44;- --accent-secondary-rgb: 135, 154, 57;- --accent-tertiary-rgb: 67, 133, 190;- --text-primary-rgb: 206, 205, 195;- --text-secondary-rgb: 183, 181, 172;- --text-muted-rgb: 135, 133, 128;- --border-color-rgb: 64, 62, 60;- --success-color-rgb: 135, 154, 57;- --warning-color-rgb: 208, 162, 21;- --error-color-rgb: 209, 77, 65;+/* Theme: Solarized Dark */+[data-theme="solarized-dark"] {+ --bg-primary: #002b36;+ --bg-secondary: #073642;+ --bg-tertiary: #0a4351;+ --accent-primary: #268bd2;+ --accent-secondary: #2aa198;+ --accent-tertiary: #859900;+ --text-primary: #fdf6e3;+ --text-secondary: #eee8d5;+ --text-muted: #93a1a1;+ --border-color: #586e75;+ --success-color: #859900;+ --warning-color: #b58900;+ --error-color: #dc322f;- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);- --glow-effect: 0 0 15px rgba(218, 112, 44, 0.2);- --gradient-bg: linear-gradient(135deg, #1C1B1A 0%, #100F0F 100%);- --overlay-color: rgba(16, 15, 15, 0.8);+ --bg-primary-rgb: 0, 43, 54;+ --bg-secondary-rgb: 7, 54, 66;+ --bg-tertiary-rgb: 10, 67, 81;+ --accent-primary-rgb: 38, 139, 210;+ --accent-secondary-rgb: 42, 161, 152;+ --accent-tertiary-rgb: 133, 153, 0;+ --text-primary-rgb: 253, 246, 227;+ --text-secondary-rgb: 238, 232, 213;+ --text-muted-rgb: 147, 161, 161;+ --border-color-rgb: 88, 110, 117;+ --success-color-rgb: 133, 153, 0;+ --warning-color-rgb: 181, 137, 0;+ --error-color-rgb: 220, 50, 47;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);+ --glow-effect: 0 0 15px rgba(38, 139, 210, 0.2);+ --gradient-bg: linear-gradient(135deg, #073642 0%, #002b36 100%);+ --overlay-color: rgba(0, 43, 54, 0.8);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -927,40 +839,40 @@--card-bg: var(--bg-secondary);}-/* Flexoki Light Theme - Paper-inspired warm tones */-[data-theme="flexoki-light"] {- --bg-primary: #FFFCF0;- --bg-secondary: #F2F0E5;- --bg-tertiary: #E6E4D9;- --accent-primary: #BC5215;- --accent-secondary: #66800B;- --accent-tertiary: #205EA6;- --text-primary: #100F0F;- --text-secondary: #343331;- --text-muted: #6F6E69;- --border-color: #CECDC3;- --success-color: #66800B;- --warning-color: #AD8301;- --error-color: #AF3029;+/* Theme: Solarized Light */+[data-theme="solarized-light"] {+ --bg-primary: #fdf6e3;+ --bg-secondary: #eee8d5;+ --bg-tertiary: #ddd6c3;+ --accent-primary: #268bd2;+ --accent-secondary: #2aa198;+ --accent-tertiary: #859900;+ --text-primary: #073642;+ --text-secondary: #586e75;+ --text-muted: #93a1a1;+ --border-color: #93a1a1;+ --success-color: #859900;+ --warning-color: #b58900;+ --error-color: #dc322f;- --bg-primary-rgb: 255, 252, 240;- --bg-secondary-rgb: 242, 240, 229;- --bg-tertiary-rgb: 230, 228, 217;- --accent-primary-rgb: 188, 82, 21;- --accent-secondary-rgb: 102, 128, 11;- --accent-tertiary-rgb: 32, 94, 166;- --text-primary-rgb: 16, 15, 15;- --text-secondary-rgb: 52, 51, 49;- --text-muted-rgb: 111, 110, 105;- --border-color-rgb: 206, 205, 195;- --success-color-rgb: 102, 128, 11;- --warning-color-rgb: 173, 131, 1;- --error-color-rgb: 175, 48, 41;+ --bg-primary-rgb: 253, 246, 227;+ --bg-secondary-rgb: 238, 232, 213;+ --bg-tertiary-rgb: 221, 214, 195;+ --accent-primary-rgb: 38, 139, 210;+ --accent-secondary-rgb: 42, 161, 152;+ --accent-tertiary-rgb: 133, 153, 0;+ --text-primary-rgb: 7, 54, 66;+ --text-secondary-rgb: 88, 110, 117;+ --text-muted-rgb: 147, 161, 161;+ --border-color-rgb: 147, 161, 161;+ --success-color-rgb: 133, 153, 0;+ --warning-color-rgb: 181, 137, 0;+ --error-color-rgb: 220, 50, 47;- --card-shadow: 0 2px 12px rgba(16, 15, 15, 0.08);- --glow-effect: 0 0 10px rgba(188, 82, 21, 0.15);- --gradient-bg: linear-gradient(135deg, #F2F0E5 0%, #FFFCF0 100%);- --overlay-color: rgba(16, 15, 15, 0.3);+ --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);+ --glow-effect: 0 0 10px rgba(38, 139, 210, 0.15);+ --gradient-bg: linear-gradient(135deg, #eee8d5 0%, #fdf6e3 100%);+ --overlay-color: rgba(7, 54, 66, 0.3);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -970,40 +882,40 @@--card-bg: var(--bg-secondary);}-/* Rosé Pine Theme - Warm and soft soho vibes */-[data-theme="rose-pine"] {- --bg-primary: #191724;- --bg-secondary: #1f1d2e;- --bg-tertiary: #26233a;- --accent-primary: #ebbcba;- --accent-secondary: #c4a7e7;- --accent-tertiary: #9ccfd8;- --text-primary: #e0def4;- --text-secondary: #908caa;- --text-muted: #6e6a86;- --border-color: #403d52;- --success-color: #9ccfd8;- --warning-color: #f6c177;- --error-color: #eb6f92;+/* Theme: Tokyo Night */+[data-theme="tokyo-night"] {+ --bg-primary: #1a1b26;+ --bg-secondary: #24283b;+ --bg-tertiary: #343b58;+ --accent-primary: #7aa2f7;+ --accent-secondary: #bb9af7;+ --accent-tertiary: #7dcfff;+ --text-primary: #c0caf5;+ --text-secondary: #a9b1d6;+ --text-muted: #565f89;+ --border-color: #414868;+ --success-color: #9ece6a;+ --warning-color: #e0af68;+ --error-color: #f7768e;- --bg-primary-rgb: 25, 23, 36;- --bg-secondary-rgb: 31, 29, 46;- --bg-tertiary-rgb: 38, 35, 58;- --accent-primary-rgb: 235, 188, 186;- --accent-secondary-rgb: 196, 167, 231;- --accent-tertiary-rgb: 156, 207, 216;- --text-primary-rgb: 224, 222, 244;- --text-secondary-rgb: 144, 140, 170;- --text-muted-rgb: 110, 106, 134;- --border-color-rgb: 64, 61, 82;- --success-color-rgb: 156, 207, 216;- --warning-color-rgb: 246, 193, 119;- --error-color-rgb: 235, 111, 146;+ --bg-primary-rgb: 26, 27, 38;+ --bg-secondary-rgb: 36, 40, 59;+ --bg-tertiary-rgb: 52, 59, 88;+ --accent-primary-rgb: 122, 162, 247;+ --accent-secondary-rgb: 187, 154, 247;+ --accent-tertiary-rgb: 125, 207, 255;+ --text-primary-rgb: 192, 202, 245;+ --text-secondary-rgb: 169, 177, 214;+ --text-muted-rgb: 86, 95, 137;+ --border-color-rgb: 65, 72, 104;+ --success-color-rgb: 158, 206, 106;+ --warning-color-rgb: 224, 175, 104;+ --error-color-rgb: 247, 118, 142;--card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);- --glow-effect: 0 0 15px rgba(235, 188, 186, 0.2);- --gradient-bg: linear-gradient(135deg, #1f1d2e 0%, #191724 100%);- --overlay-color: rgba(25, 23, 36, 0.8);+ --glow-effect: 0 0 15px rgba(122, 162, 247, 0.3);+ --gradient-bg: linear-gradient(135deg, #24283b 0%, #1a1b26 100%);+ --overlay-color: rgba(26, 27, 38, 0.8);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -1013,50 +925,53 @@--card-bg: var(--bg-secondary);}-/* Rosé Pine Dawn Theme - Warm light variant */-[data-theme="rose-pine-dawn"] {- --bg-primary: #faf4ed;- --bg-secondary: #fffaf3;- --bg-tertiary: #f2e9e1;- --accent-primary: #d7827e;- --accent-secondary: #907aa9;- --accent-tertiary: #56949f;- --text-primary: #575279;- --text-secondary: #797593;- --text-muted: #9893a5;- --border-color: #dfdad9;- --success-color: #56949f;- --warning-color: #ea9d34;- --error-color: #b4637a;- --bg-primary-rgb: 250, 244, 237;- --bg-secondary-rgb: 255, 250, 243;- --bg-tertiary-rgb: 242, 233, 225;- --accent-primary-rgb: 215, 130, 126;- --accent-secondary-rgb: 144, 122, 169;- --accent-tertiary-rgb: 86, 148, 159;- --text-primary-rgb: 87, 82, 121;- --text-secondary-rgb: 121, 117, 147;- --text-muted-rgb: 152, 147, 165;- --border-color-rgb: 223, 218, 217;- --success-color-rgb: 86, 148, 159;- --warning-color-rgb: 234, 157, 52;- --error-color-rgb: 180, 99, 122;+/* === Research & Reading === */- --card-shadow: 0 2px 12px rgba(87, 82, 121, 0.08);- --glow-effect: 0 0 10px rgba(215, 130, 126, 0.15);- --gradient-bg: linear-gradient(135deg, #fffaf3 0%, #faf4ed 100%);- --overlay-color: rgba(87, 82, 121, 0.2);+/* Theme: Ayu Mirage */+[data-theme="ayu-mirage"] {+ --bg-primary: #1F2430;+ --bg-secondary: #242936;+ --bg-tertiary: #2D3440;+ --accent-primary: #FFCC66;+ --accent-secondary: #73D0FF;+ --accent-tertiary: #87D96C;+ --text-primary: #CCCAC2;+ --text-secondary: #B8CFE6;+ --text-muted: #707A8C;+ --border-color: #3D4455;+ --success-color: #87D96C;+ --warning-color: #FFD173;+ --error-color: #FF6666;++ --bg-primary-rgb: 31, 36, 48;+ --bg-secondary-rgb: 36, 41, 54;+ --bg-tertiary-rgb: 45, 52, 64;+ --accent-primary-rgb: 255, 204, 102;+ --accent-secondary-rgb: 115, 208, 255;+ --accent-tertiary-rgb: 135, 217, 108;+ --text-primary-rgb: 204, 202, 194;+ --text-secondary-rgb: 184, 207, 230;+ --text-muted-rgb: 112, 122, 140;+ --border-color-rgb: 61, 68, 85;+ --success-color-rgb: 135, 217, 108;+ --warning-color-rgb: 255, 209, 115;+ --error-color-rgb: 255, 102, 102;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);+ --glow-effect: 0 0 15px rgba(255, 204, 102, 0.2);+ --gradient-bg: linear-gradient(135deg, #242936 0%, #1F2430 100%);+ --overlay-color: rgba(31, 36, 48, 0.85);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */--shadow-color-rgb: 0, 0, 0;- --highlight-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;--primary-color: var(--accent-primary);--card-bg: var(--bg-secondary);}-/* Everforest Dark Theme - Green-based eye protection */+/* Theme: Everforest Dark */[data-theme="everforest-dark"] {--bg-primary: #2D353B;--bg-secondary: #343F44;@@ -1099,7 +1014,7 @@--card-bg: var(--bg-secondary);}-/* Everforest Light Theme - Soft green warmth */+/* Theme: Everforest Light */[data-theme="everforest-light"] {--bg-primary: #FDF6E3;--bg-secondary: #F4F0D9;@@ -1142,40 +1057,126 @@--card-bg: var(--bg-secondary);}-/* Night Owl Theme - Accessibility-focused for low light */-[data-theme="night-owl"] {- --bg-primary: #011627;- --bg-secondary: #0b2942;- --bg-tertiary: #1d3b53;- --accent-primary: #82aaff;- --accent-secondary: #c792ea;- --accent-tertiary: #7fdbca;- --text-primary: #d6deeb;- --text-secondary: #89a4bb;- --text-muted: #5f7e97;- --border-color: #234d70;- --success-color: #9CCC65;- --warning-color: #FFCA28;- --error-color: #EF5350;+/* Theme: Flexoki Dark */+[data-theme="flexoki-dark"] {+ --bg-primary: #100F0F;+ --bg-secondary: #1C1B1A;+ --bg-tertiary: #282726;+ --accent-primary: #DA702C;+ --accent-secondary: #879A39;+ --accent-tertiary: #4385BE;+ --text-primary: #CECDC3;+ --text-secondary: #B7B5AC;+ --text-muted: #878580;+ --border-color: #403E3C;+ --success-color: #879A39;+ --warning-color: #D0A215;+ --error-color: #D14D41;- --bg-primary-rgb: 1, 22, 39;- --bg-secondary-rgb: 11, 41, 66;- --bg-tertiary-rgb: 29, 59, 83;- --accent-primary-rgb: 130, 170, 255;- --accent-secondary-rgb: 199, 146, 234;- --accent-tertiary-rgb: 127, 219, 202;- --text-primary-rgb: 214, 222, 235;- --text-secondary-rgb: 137, 164, 187;- --text-muted-rgb: 95, 126, 151;- --border-color-rgb: 35, 77, 112;- --success-color-rgb: 156, 204, 101;- --warning-color-rgb: 255, 202, 40;- --error-color-rgb: 239, 83, 80;+ --bg-primary-rgb: 16, 15, 15;+ --bg-secondary-rgb: 28, 27, 26;+ --bg-tertiary-rgb: 40, 39, 38;+ --accent-primary-rgb: 218, 112, 44;+ --accent-secondary-rgb: 135, 154, 57;+ --accent-tertiary-rgb: 67, 133, 190;+ --text-primary-rgb: 206, 205, 195;+ --text-secondary-rgb: 183, 181, 172;+ --text-muted-rgb: 135, 133, 128;+ --border-color-rgb: 64, 62, 60;+ --success-color-rgb: 135, 154, 57;+ --warning-color-rgb: 208, 162, 21;+ --error-color-rgb: 209, 77, 65;- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);- --glow-effect: 0 0 15px rgba(130, 170, 255, 0.2);- --gradient-bg: linear-gradient(135deg, #0b2942 0%, #011627 100%);- --overlay-color: rgba(1, 22, 39, 0.85);+ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(218, 112, 44, 0.2);+ --gradient-bg: linear-gradient(135deg, #1C1B1A 0%, #100F0F 100%);+ --overlay-color: rgba(16, 15, 15, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}++/* Theme: Flexoki Light */+[data-theme="flexoki-light"] {+ --bg-primary: #FFFCF0;+ --bg-secondary: #F2F0E5;+ --bg-tertiary: #E6E4D9;+ --accent-primary: #BC5215;+ --accent-secondary: #66800B;+ --accent-tertiary: #205EA6;+ --text-primary: #100F0F;+ --text-secondary: #343331;+ --text-muted: #6F6E69;+ --border-color: #CECDC3;+ --success-color: #66800B;+ --warning-color: #AD8301;+ --error-color: #AF3029;++ --bg-primary-rgb: 255, 252, 240;+ --bg-secondary-rgb: 242, 240, 229;+ --bg-tertiary-rgb: 230, 228, 217;+ --accent-primary-rgb: 188, 82, 21;+ --accent-secondary-rgb: 102, 128, 11;+ --accent-tertiary-rgb: 32, 94, 166;+ --text-primary-rgb: 16, 15, 15;+ --text-secondary-rgb: 52, 51, 49;+ --text-muted-rgb: 111, 110, 105;+ --border-color-rgb: 206, 205, 195;+ --success-color-rgb: 102, 128, 11;+ --warning-color-rgb: 173, 131, 1;+ --error-color-rgb: 175, 48, 41;++ --card-shadow: 0 2px 12px rgba(16, 15, 15, 0.08);+ --glow-effect: 0 0 10px rgba(188, 82, 21, 0.15);+ --gradient-bg: linear-gradient(135deg, #F2F0E5 0%, #FFFCF0 100%);+ --overlay-color: rgba(16, 15, 15, 0.3);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}++/* Theme: Kanagawa */+[data-theme="kanagawa"] {+ --bg-primary: #1F1F28;+ --bg-secondary: #2A2A37;+ --bg-tertiary: #363646;+ --accent-primary: #7E9CD8;+ --accent-secondary: #957FB8;+ --accent-tertiary: #7AA89F;+ --text-primary: #DCD7BA;+ --text-secondary: #C8C093;+ --text-muted: #727169;+ --border-color: #54546D;+ --success-color: #98BB6C;+ --warning-color: #E6C384;+ --error-color: #C34043;++ --bg-primary-rgb: 31, 31, 40;+ --bg-secondary-rgb: 42, 42, 55;+ --bg-tertiary-rgb: 54, 54, 70;+ --accent-primary-rgb: 126, 156, 216;+ --accent-secondary-rgb: 149, 127, 184;+ --accent-tertiary-rgb: 122, 168, 159;+ --text-primary-rgb: 220, 215, 186;+ --text-secondary-rgb: 200, 192, 147;+ --text-muted-rgb: 114, 113, 105;+ --border-color-rgb: 84, 84, 109;+ --success-color-rgb: 152, 187, 108;+ --warning-color-rgb: 230, 195, 132;+ --error-color-rgb: 195, 64, 67;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(126, 156, 216, 0.2);+ --gradient-bg: linear-gradient(135deg, #2A2A37 0%, #1F1F28 100%);+ --overlay-color: rgba(31, 31, 40, 0.85);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -1185,7 +1186,7 @@--card-bg: var(--bg-secondary);}-/* Light Owl Theme - Accessibility-focused for daylight */+/* Theme: Light Owl */[data-theme="light-owl"] {--bg-primary: #F0F0F0;--bg-secondary: #FAFAFA;@@ -1228,126 +1229,40 @@--card-bg: var(--bg-secondary);}-/* Vesper Theme - Warm peppermint and orange */-[data-theme="vesper"] {- --bg-primary: #101010;- --bg-secondary: #1C1C1C;- --bg-tertiary: #282828;- --accent-primary: #FFC799;- --accent-secondary: #60CDAB;- --accent-tertiary: #FFCFA8;- --text-primary: #FFFFFF;- --text-secondary: #A0A0A0;- --text-muted: #606060;- --border-color: #333333;- --success-color: #60CDAB;- --warning-color: #FFC799;- --error-color: #F07171;+/* Theme: Night Owl */+[data-theme="night-owl"] {+ --bg-primary: #011627;+ --bg-secondary: #0b2942;+ --bg-tertiary: #1d3b53;+ --accent-primary: #82aaff;+ --accent-secondary: #c792ea;+ --accent-tertiary: #7fdbca;+ --text-primary: #d6deeb;+ --text-secondary: #89a4bb;+ --text-muted: #5f7e97;+ --border-color: #234d70;+ --success-color: #9CCC65;+ --warning-color: #FFCA28;+ --error-color: #EF5350;- --bg-primary-rgb: 16, 16, 16;- --bg-secondary-rgb: 28, 28, 28;- --bg-tertiary-rgb: 40, 40, 40;- --accent-primary-rgb: 255, 199, 153;- --accent-secondary-rgb: 96, 205, 171;- --accent-tertiary-rgb: 255, 207, 168;- --text-primary-rgb: 255, 255, 255;- --text-secondary-rgb: 160, 160, 160;- --text-muted-rgb: 96, 96, 96;- --border-color-rgb: 51, 51, 51;- --success-color-rgb: 96, 205, 171;- --warning-color-rgb: 255, 199, 153;- --error-color-rgb: 240, 113, 113;+ --bg-primary-rgb: 1, 22, 39;+ --bg-secondary-rgb: 11, 41, 66;+ --bg-tertiary-rgb: 29, 59, 83;+ --accent-primary-rgb: 130, 170, 255;+ --accent-secondary-rgb: 199, 146, 234;+ --accent-tertiary-rgb: 127, 219, 202;+ --text-primary-rgb: 214, 222, 235;+ --text-secondary-rgb: 137, 164, 187;+ --text-muted-rgb: 95, 126, 151;+ --border-color-rgb: 35, 77, 112;+ --success-color-rgb: 156, 204, 101;+ --warning-color-rgb: 255, 202, 40;+ --error-color-rgb: 239, 83, 80;--card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);- --glow-effect: 0 0 15px rgba(255, 199, 153, 0.2);- --gradient-bg: linear-gradient(135deg, #1C1C1C 0%, #101010 100%);- --overlay-color: rgba(16, 16, 16, 0.85);- --backdrop-blur: blur(10px);-- /* Theme-aware colors for shadows and highlights */- --shadow-color-rgb: 0, 0, 0;- --highlight-color-rgb: 255, 255, 255;- --primary-color: var(--accent-primary);- --card-bg: var(--bg-secondary);-}--/* Ayu Mirage Theme - Modern minimalist twilight */-[data-theme="ayu-mirage"] {- --bg-primary: #1F2430;- --bg-secondary: #242936;- --bg-tertiary: #2D3440;- --accent-primary: #FFCC66;- --accent-secondary: #73D0FF;- --accent-tertiary: #87D96C;- --text-primary: #CCCAC2;- --text-secondary: #B8CFE6;- --text-muted: #707A8C;- --border-color: #3D4455;- --success-color: #87D96C;- --warning-color: #FFD173;- --error-color: #FF6666;-- --bg-primary-rgb: 31, 36, 48;- --bg-secondary-rgb: 36, 41, 54;- --bg-tertiary-rgb: 45, 52, 64;- --accent-primary-rgb: 255, 204, 102;- --accent-secondary-rgb: 115, 208, 255;- --accent-tertiary-rgb: 135, 217, 108;- --text-primary-rgb: 204, 202, 194;- --text-secondary-rgb: 184, 207, 230;- --text-muted-rgb: 112, 122, 140;- --border-color-rgb: 61, 68, 85;- --success-color-rgb: 135, 217, 108;- --warning-color-rgb: 255, 209, 115;- --error-color-rgb: 255, 102, 102;-- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);- --glow-effect: 0 0 15px rgba(255, 204, 102, 0.2);- --gradient-bg: linear-gradient(135deg, #242936 0%, #1F2430 100%);- --overlay-color: rgba(31, 36, 48, 0.85);- --backdrop-blur: blur(10px);-- /* Theme-aware colors for shadows and highlights */- --shadow-color-rgb: 0, 0, 0;- --highlight-color-rgb: 255, 255, 255;- --primary-color: var(--accent-primary);- --card-bg: var(--bg-secondary);-}--/* Kanagawa Theme - Japanese-inspired (The Great Wave) */-[data-theme="kanagawa"] {- --bg-primary: #1F1F28;- --bg-secondary: #2A2A37;- --bg-tertiary: #363646;- --accent-primary: #7E9CD8;- --accent-secondary: #957FB8;- --accent-tertiary: #7AA89F;- --text-primary: #DCD7BA;- --text-secondary: #C8C093;- --text-muted: #727169;- --border-color: #54546D;- --success-color: #98BB6C;- --warning-color: #E6C384;- --error-color: #C34043;-- --bg-primary-rgb: 31, 31, 40;- --bg-secondary-rgb: 42, 42, 55;- --bg-tertiary-rgb: 54, 54, 70;- --accent-primary-rgb: 126, 156, 216;- --accent-secondary-rgb: 149, 127, 184;- --accent-tertiary-rgb: 122, 168, 159;- --text-primary-rgb: 220, 215, 186;- --text-secondary-rgb: 200, 192, 147;- --text-muted-rgb: 114, 113, 105;- --border-color-rgb: 84, 84, 109;- --success-color-rgb: 152, 187, 108;- --warning-color-rgb: 230, 195, 132;- --error-color-rgb: 195, 64, 67;-- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);- --glow-effect: 0 0 15px rgba(126, 156, 216, 0.2);- --gradient-bg: linear-gradient(135deg, #2A2A37 0%, #1F1F28 100%);- --overlay-color: rgba(31, 31, 40, 0.85);+ --glow-effect: 0 0 15px rgba(130, 170, 255, 0.2);+ --gradient-bg: linear-gradient(135deg, #0b2942 0%, #011627 100%);+ --overlay-color: rgba(1, 22, 39, 0.85);--backdrop-blur: blur(10px);/* Theme-aware colors for shadows and highlights */@@ -1357,7 +1272,7 @@--card-bg: var(--bg-secondary);}-/* Palenight Theme - Material Design inspired purple */+/* Theme: Palenight */[data-theme="palenight"] {--bg-primary: #292D3E;--bg-secondary: #303348;@@ -1400,74 +1315,131 @@--card-bg: var(--bg-secondary);}-/* ====================================- THEME-SPECIFIC ADJUSTMENTS- ==================================== */+/* Theme: Rosé Pine */+[data-theme="rose-pine"] {+ --bg-primary: #191724;+ --bg-secondary: #1f1d2e;+ --bg-tertiary: #26233a;+ --accent-primary: #ebbcba;+ --accent-secondary: #c4a7e7;+ --accent-tertiary: #9ccfd8;+ --text-primary: #e0def4;+ --text-secondary: #908caa;+ --text-muted: #6e6a86;+ --border-color: #403d52;+ --success-color: #9ccfd8;+ --warning-color: #f6c177;+ --error-color: #eb6f92;-/* High Contrast: Ensure links are visible */-[data-theme="high-contrast"] a {- color: var(--accent-secondary);- text-decoration: underline;-}+ --bg-primary-rgb: 25, 23, 36;+ --bg-secondary-rgb: 31, 29, 46;+ --bg-tertiary-rgb: 38, 35, 58;+ --accent-primary-rgb: 235, 188, 186;+ --accent-secondary-rgb: 196, 167, 231;+ --accent-tertiary-rgb: 156, 207, 216;+ --text-primary-rgb: 224, 222, 244;+ --text-secondary-rgb: 144, 140, 170;+ --text-muted-rgb: 110, 106, 134;+ --border-color-rgb: 64, 61, 82;+ --success-color-rgb: 156, 207, 216;+ --warning-color-rgb: 246, 193, 119;+ --error-color-rgb: 235, 111, 146;-[data-theme="high-contrast"] a:hover {- color: var(--accent-tertiary);-}+ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(235, 188, 186, 0.2);+ --gradient-bg: linear-gradient(135deg, #1f1d2e 0%, #191724 100%);+ --overlay-color: rgba(25, 23, 36, 0.8);+ --backdrop-blur: blur(10px);-/* High Contrast: Stronger focus indicators */-[data-theme="high-contrast"] *:focus {- outline: 3px solid var(--accent-primary) !important;- outline-offset: 2px;+ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);}-/* High Contrast: Clearer button states */-[data-theme="high-contrast"] button:hover,-[data-theme="high-contrast"] .btn:hover {- background: var(--accent-primary) !important;- color: var(--bg-primary) !important;-}+/* Theme: Rosé Pine Dawn */+[data-theme="rose-pine-dawn"] {+ --bg-primary: #faf4ed;+ --bg-secondary: #fffaf3;+ --bg-tertiary: #f2e9e1;+ --accent-primary: #d7827e;+ --accent-secondary: #907aa9;+ --accent-tertiary: #56949f;+ --text-primary: #575279;+ --text-secondary: #797593;+ --text-muted: #9893a5;+ --border-color: #dfdad9;+ --success-color: #56949f;+ --warning-color: #ea9d34;+ --error-color: #b4637a;-/* Sepia: Softer link colors */-[data-theme="sepia"] a {- color: var(--accent-tertiary);-}+ --bg-primary-rgb: 250, 244, 237;+ --bg-secondary-rgb: 255, 250, 243;+ --bg-tertiary-rgb: 242, 233, 225;+ --accent-primary-rgb: 215, 130, 126;+ --accent-secondary-rgb: 144, 122, 169;+ --accent-tertiary-rgb: 86, 148, 159;+ --text-primary-rgb: 87, 82, 121;+ --text-secondary-rgb: 121, 117, 147;+ --text-muted-rgb: 152, 147, 165;+ --border-color-rgb: 223, 218, 217;+ --success-color-rgb: 86, 148, 159;+ --warning-color-rgb: 234, 157, 52;+ --error-color-rgb: 180, 99, 122;-[data-theme="sepia"] a:hover {- color: var(--accent-secondary);-}+ --card-shadow: 0 2px 12px rgba(87, 82, 121, 0.08);+ --glow-effect: 0 0 10px rgba(215, 130, 126, 0.15);+ --gradient-bg: linear-gradient(135deg, #fffaf3 0%, #faf4ed 100%);+ --overlay-color: rgba(87, 82, 121, 0.2);+ --backdrop-blur: blur(10px);-/* Light theme: Adjust scrollbar colors */-[data-theme="light"] ::-webkit-scrollbar-track {- background: var(--bg-tertiary);+ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);}-[data-theme="light"] ::-webkit-scrollbar-thumb {- background: var(--accent-primary);-}+/* Theme: Vesper */+[data-theme="vesper"] {+ --bg-primary: #101010;+ --bg-secondary: #1C1C1C;+ --bg-tertiary: #282828;+ --accent-primary: #FFC799;+ --accent-secondary: #60CDAB;+ --accent-tertiary: #FFCFA8;+ --text-primary: #FFFFFF;+ --text-secondary: #A0A0A0;+ --text-muted: #606060;+ --border-color: #333333;+ --success-color: #60CDAB;+ --warning-color: #FFC799;+ --error-color: #F07171;-/* ====================================- TRANSITION FOR THEME SWITCHING- ==================================== */--/* Smooth color transitions when switching themes */-@media (prefers-reduced-motion: no-preference) {- html {- transition: background-color 0.3s ease, color 0.3s ease;- }-- body,- .ldr-sidebar,- .ldr-main-content,- .ldr-card,- .ldr-rag-section,- .ldr-rag-header {- transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;- }-}+ --bg-primary-rgb: 16, 16, 16;+ --bg-secondary-rgb: 28, 28, 28;+ --bg-tertiary-rgb: 40, 40, 40;+ --accent-primary-rgb: 255, 199, 153;+ --accent-secondary-rgb: 96, 205, 171;+ --accent-tertiary-rgb: 255, 207, 168;+ --text-primary-rgb: 255, 255, 255;+ --text-secondary-rgb: 160, 160, 160;+ --text-muted-rgb: 96, 96, 96;+ --border-color-rgb: 51, 51, 51;+ --success-color-rgb: 96, 205, 171;+ --warning-color-rgb: 255, 199, 153;+ --error-color-rgb: 240, 113, 113;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);+ --glow-effect: 0 0 15px rgba(255, 199, 153, 0.2);+ --gradient-bg: linear-gradient(135deg, #1C1C1C 0%, #101010 100%);+ --overlay-color: rgba(16, 16, 16, 0.85);+ --backdrop-blur: blur(10px);-/* Disable transitions for users who prefer reduced motion */-@media (prefers-reduced-motion: reduce) {- * {- transition: none !important;- }+ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);}diff --git a/src/local_deep_research/web/themes/__init__.py b/src/local_deep_research/web/themes/__init__.pynew file mode 100644index 0000000000..d5056c9dae--- /dev/null+++ b/src/local_deep_research/web/themes/__init__.py@@ -0,0 +1,240 @@+"""+Theme System - Modular theme management with individual theme files.++This module provides a centralized theme registry that:+- Auto-discovers themes from CSS files with TOML frontmatter+- Generates combined CSS for browser consumption+- Provides theme metadata for UI dropdowns+- Integrates with Flask templates via Jinja2 globals++Usage:+ from local_deep_research.web.themes import theme_registry++ # Get all theme IDs+ themes = theme_registry.get_theme_ids()++ # Get theme metadata for JavaScript+ metadata_json = theme_registry.get_metadata_json()++ # Generate combined CSS+ css = theme_registry.get_combined_css()+"""++import json+from pathlib import Path++from loguru import logger+from markupsafe import Markup++from .loader import ThemeLoader+from .schema import GROUP_LABELS, ThemeMetadata++# Package directory (where theme subdirectories live)+THEMES_DIR = Path(__file__).parent+++class ThemeRegistry:+ """Central registry for theme management.++ This is a singleton class that manages all theme loading, caching,+ and provides methods for Flask integration.+ """++ _instance: "ThemeRegistry | None" = None++ def __new__(cls) -> "ThemeRegistry":+ """Ensure singleton pattern."""+ if cls._instance is None:+ cls._instance = super().__new__(cls)+ cls._instance._loader = ThemeLoader(THEMES_DIR)+ cls._instance._initialized = False+ return cls._instance++ @property+ def themes(self) -> dict[str, ThemeMetadata]:+ """Get all loaded themes."""+ return self._loader.load_all_themes()++ def get_theme(self, theme_id: str) -> ThemeMetadata | None:+ """Get a specific theme by ID.++ Args:+ theme_id: The theme identifier (e.g., "nord", "dracula")++ Returns:+ ThemeMetadata object or None if not found+ """+ return self.themes.get(theme_id)++ def get_theme_ids(self) -> list[str]:+ """Get sorted list of all theme IDs.++ Returns:+ List of theme ID strings+ """+ return sorted(self.themes.keys())++ def get_themes_by_group(self) -> dict[str, list[ThemeMetadata]]:+ """Get themes organized by group.++ Returns:+ Dictionary mapping group names to lists of ThemeMetadata+ """+ grouped: dict[str, list[ThemeMetadata]] = {}+ for theme in self.themes.values():+ grouped.setdefault(theme.group, []).append(theme)+ # Sort themes within each group by label+ for group in grouped:+ grouped[group].sort(key=lambda t: t.label)+ return grouped++ def get_combined_css(self) -> str:+ """Generate combined CSS from all theme files.++ Strips frontmatter and concatenates all theme CSS.++ Returns:+ Combined CSS string+ """+ css_parts: list[str] = []++ # Add header comment+ css_parts.append(+ "/* Auto-generated theme CSS - Do not edit directly */"+ )+ css_parts.append(+ f"/* Generated from {len(self.themes)} theme files */\n"+ )++ # Process themes in group order for predictable output+ group_order = ["core", "nature", "dev", "research", "other"]+ for group in group_order:+ group_themes = [t for t in self.themes.values() if t.group == group]+ if not group_themes:+ continue++ css_parts.append(+ f"\n/* === {GROUP_LABELS.get(group, group)} === */\n"+ )++ for theme in sorted(group_themes, key=lambda t: t.label):+ if theme.css_path and theme.css_path.exists():+ content = self._loader.get_css_content(theme)+ if content:+ css_parts.append(f"/* Theme: {theme.label} */")+ css_parts.append(content)+ css_parts.append("") # Empty line between themes++ return "\n".join(css_parts)++ def get_themes_json(self) -> Markup:+ """Get theme ID list as JSON for JavaScript.++ Returns:+ Markup-safe JSON array string+ """+ return Markup(json.dumps(self.get_theme_ids()))++ def get_metadata_json(self) -> Markup:+ """Get full theme metadata as JSON for JavaScript.++ Returns:+ Markup-safe JSON object string with theme metadata+ """+ metadata = {}+ for theme_id, theme in self.themes.items():+ metadata[theme_id] = theme.to_dict()+ return Markup(json.dumps(metadata))++ def get_settings_options(self) -> list[dict]:+ """Generate options list for settings UI.++ Returns:+ List of {label, value} dicts suitable for default_settings.json format+ """+ options = []+ for theme in self.themes.values():+ options.append(+ {+ "label": theme.label,+ "value": theme.id,+ }+ )+ return sorted(options, key=lambda x: x["label"])++ def get_grouped_settings_options(self) -> list[dict]:+ """Generate grouped options for settings UI with optgroup support.++ Returns:+ List of {label, value, group} dicts+ """+ options = []+ for theme in self.themes.values():+ options.append(+ {+ "label": theme.label,+ "value": theme.id,+ "group": GROUP_LABELS.get(theme.group, theme.group),+ }+ )+ return sorted(options, key=lambda x: (x["group"], x["label"]))++ def is_valid_theme(self, theme_id: str) -> bool:+ """Check if a theme ID is valid.++ Args:+ theme_id: The theme identifier to validate++ Returns:+ True if theme exists, False otherwise+ """+ return theme_id in self.themes++ def clear_cache(self) -> None:+ """Clear theme cache (useful for development/hot-reload)."""+ self._loader.clear_cache()+ logger.debug("Theme cache cleared")+++# Singleton instance+theme_registry = ThemeRegistry()+++# Flask integration functions (for backward compatibility with theme_helper pattern)+def get_themes() -> list[str]:+ """Get list of available theme names.++ Returns:+ Sorted list of theme ID strings+ """+ return theme_registry.get_theme_ids()+++def get_themes_json() -> Markup:+ """Get themes as JSON string for embedding in HTML.++ Returns:+ Markup-safe JSON array of theme IDs+ """+ return theme_registry.get_themes_json()+++def get_theme_metadata() -> Markup:+ """Get full theme metadata as JSON for JavaScript.++ Returns:+ Markup-safe JSON object with theme metadata+ """+ return theme_registry.get_metadata_json()+++__all__ = [+ "ThemeRegistry",+ "ThemeMetadata",+ "theme_registry",+ "get_themes",+ "get_themes_json",+ "get_theme_metadata",+ "THEMES_DIR",+ "GROUP_LABELS",+]diff --git a/src/local_deep_research/web/themes/core/hashed.css b/src/local_deep_research/web/themes/core/hashed.cssnew file mode 100644index 0000000000..6416137396--- /dev/null+++ b/src/local_deep_research/web/themes/core/hashed.css@@ -0,0 +1,55 @@+/*---+name = "Hashed"+label = "Hashed"+icon = "fa-hashtag"+group = "core"+type = "dark"+description = "Purple accent on dark background, created by Hashed Viking"+is_default = true+---*/+:root,+[data-theme="hashed"] {+ --bg-primary: #121212;+ --bg-secondary: #1e1e2d;+ --bg-tertiary: #2a2a3a;+ --accent-primary: #6e4ff6;+ --accent-secondary: #9179f0;+ --accent-tertiary: #40bfff;+ --text-primary: #f5f5f5;+ --text-secondary: #c0c0cc;+ --text-muted: #8a8aa0;+ --border-color: #343452;+ --success-color: #0acf97;+ --warning-color: #f9bc0b;+ --error-color: #fa5c7c;++ /* RGB variants for rgba() usage */+ --bg-primary-rgb: 18, 18, 18;+ --bg-secondary-rgb: 30, 30, 45;+ --bg-tertiary-rgb: 42, 42, 58;+ --accent-primary-rgb: 110, 79, 246;+ --accent-secondary-rgb: 145, 121, 240;+ --accent-tertiary-rgb: 64, 191, 255;+ --text-primary-rgb: 245, 245, 245;+ --text-secondary-rgb: 192, 192, 204;+ --text-muted-rgb: 138, 138, 160;+ --border-color-rgb: 52, 52, 82;+ --success-color-rgb: 10, 207, 151;+ --warning-color-rgb: 249, 188, 11;+ --error-color-rgb: 250, 92, 124;++ /* Shadows and effects */+ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);+ --glow-effect: 0 0 15px rgba(110, 79, 246, 0.3);+ --gradient-bg: linear-gradient(135deg, #2a2a3a 0%, #1e1e2d 100%);+ --overlay-color: rgba(0, 0, 0, 0.5);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;++ /* Aliases */+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/core/high-contrast.css b/src/local_deep_research/web/themes/core/high-contrast.cssnew file mode 100644index 0000000000..b5a860c457--- /dev/null+++ b/src/local_deep_research/web/themes/core/high-contrast.css@@ -0,0 +1,71 @@+/*---+name = "High Contrast"+label = "High Contrast"+icon = "fa-eye"+group = "core"+type = "dark"+description = "Maximum accessibility with WCAG AAA compliance"+---*/+[data-theme="high-contrast"] {+ --bg-primary: #000000;+ --bg-secondary: #0a0a0a;+ --bg-tertiary: #1a1a1a;+ --accent-primary: #ffff00;+ --accent-secondary: #00ffff;+ --accent-tertiary: #00ff00;+ --text-primary: #ffffff;+ --text-secondary: #e0e0e0;+ --text-muted: #c0c0c0;+ --border-color: #ffffff;+ --success-color: #00ff00;+ --warning-color: #ffff00;+ --error-color: #ff0000;++ /* RGB variants */+ --bg-primary-rgb: 0, 0, 0;+ --bg-secondary-rgb: 10, 10, 10;+ --bg-tertiary-rgb: 26, 26, 26;+ --accent-primary-rgb: 255, 255, 0;+ --accent-secondary-rgb: 0, 255, 255;+ --accent-tertiary-rgb: 0, 255, 0;+ --text-primary-rgb: 255, 255, 255;+ --text-secondary-rgb: 224, 224, 224;+ --text-muted-rgb: 192, 192, 192;+ --border-color-rgb: 255, 255, 255;+ --success-color-rgb: 0, 255, 0;+ --warning-color-rgb: 255, 255, 0;+ --error-color-rgb: 255, 0, 0;++ /* Shadows and effects - minimal for clarity */+ --card-shadow: 0 0 0 2px #ffffff;+ --glow-effect: none;+ --gradient-bg: none;+ --overlay-color: rgba(0, 0, 0, 0.8);+ --backdrop-blur: none;++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;++ /* Aliases */+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}++/* Theme-specific adjustments */+[data-theme="high-contrast"] a {+ color: var(--accent-secondary);+ text-decoration: underline;+}+[data-theme="high-contrast"] a:hover {+ color: var(--accent-tertiary);+}+[data-theme="high-contrast"] *:focus {+ outline: 3px solid var(--accent-primary) !important;+ outline-offset: 2px;+}+[data-theme="high-contrast"] button:hover,+[data-theme="high-contrast"] .btn:hover {+ background: var(--accent-primary) !important;+ color: var(--bg-primary) !important;+}diff --git a/src/local_deep_research/web/themes/core/light.css b/src/local_deep_research/web/themes/core/light.cssnew file mode 100644index 0000000000..f2b94bb6e1--- /dev/null+++ b/src/local_deep_research/web/themes/core/light.css@@ -0,0 +1,61 @@+/*---+name = "Light"+label = "Light"+icon = "fa-sun"+group = "core"+type = "light"+description = "Clean and bright for well-lit environments"+---*/+[data-theme="light"] {+ --bg-primary: #f8f9fa;+ --bg-secondary: #ffffff;+ --bg-tertiary: #e9ecef;+ --accent-primary: #5c3dcc;+ --accent-secondary: #7c5ce7;+ --accent-tertiary: #0984e3;+ --text-primary: #212529;+ --text-secondary: #495057;+ --text-muted: #6c757d;+ --border-color: #dee2e6;+ --success-color: #28a745;+ --warning-color: #ffc107;+ --error-color: #dc3545;++ /* RGB variants */+ --bg-primary-rgb: 248, 249, 250;+ --bg-secondary-rgb: 255, 255, 255;+ --bg-tertiary-rgb: 233, 236, 239;+ --accent-primary-rgb: 92, 61, 204;+ --accent-secondary-rgb: 124, 92, 231;+ --accent-tertiary-rgb: 9, 132, 227;+ --text-primary-rgb: 33, 37, 41;+ --text-secondary-rgb: 73, 80, 87;+ --text-muted-rgb: 108, 117, 125;+ --border-color-rgb: 222, 226, 230;+ --success-color-rgb: 40, 167, 69;+ --warning-color-rgb: 255, 193, 7;+ --error-color-rgb: 220, 53, 69;++ /* Shadows and effects */+ --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);+ --glow-effect: 0 0 10px rgba(92, 61, 204, 0.15);+ --gradient-bg: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);+ --overlay-color: rgba(0, 0, 0, 0.4);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;++ /* Aliases */+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}++/* Theme-specific adjustments */+[data-theme="light"] ::-webkit-scrollbar-track {+ background: var(--bg-tertiary);+}+[data-theme="light"] ::-webkit-scrollbar-thumb {+ background: var(--accent-primary);+}diff --git a/src/local_deep_research/web/themes/core/midnight.css b/src/local_deep_research/web/themes/core/midnight.cssnew file mode 100644index 0000000000..42ef620ce6--- /dev/null+++ b/src/local_deep_research/web/themes/core/midnight.css@@ -0,0 +1,53 @@+/*---+name = "Midnight"+label = "Midnight"+icon = "fa-cloud-moon"+group = "core"+type = "dark"+description = "Deep blue aesthetic for night coding"+---*/+[data-theme="midnight"] {+ --bg-primary: #0d1b2a;+ --bg-secondary: #1b263b;+ --bg-tertiary: #2b3a50;+ --accent-primary: #e0e1dd;+ --accent-secondary: #778da9;+ --accent-tertiary: #415a77;+ --text-primary: #e0e1dd;+ --text-secondary: #c5c6c7;+ --text-muted: #778da9;+ --border-color: #415a77;+ --success-color: #57cc99;+ --warning-color: #fca311;+ --error-color: #e71d36;++ /* RGB variants */+ --bg-primary-rgb: 13, 27, 42;+ --bg-secondary-rgb: 27, 38, 59;+ --bg-tertiary-rgb: 43, 58, 80;+ --accent-primary-rgb: 224, 225, 221;+ --accent-secondary-rgb: 119, 141, 169;+ --accent-tertiary-rgb: 65, 90, 119;+ --text-primary-rgb: 224, 225, 221;+ --text-secondary-rgb: 197, 198, 199;+ --text-muted-rgb: 119, 141, 169;+ --border-color-rgb: 65, 90, 119;+ --success-color-rgb: 87, 204, 153;+ --warning-color-rgb: 252, 163, 17;+ --error-color-rgb: 231, 29, 54;++ /* Shadows and effects */+ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(119, 141, 169, 0.2);+ --gradient-bg: linear-gradient(135deg, #1b263b 0%, #0d1b2a 100%);+ --overlay-color: rgba(13, 27, 42, 0.7);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;++ /* Aliases */+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/core/sepia.css b/src/local_deep_research/web/themes/core/sepia.cssnew file mode 100644index 0000000000..72ffb799f1--- /dev/null+++ b/src/local_deep_research/web/themes/core/sepia.css@@ -0,0 +1,61 @@+/*---+name = "Sepia"+label = "Sepia"+icon = "fa-book-open"+group = "core"+type = "light"+description = "Eye-friendly reading inspired by Solarized"+---*/+[data-theme="sepia"] {+ --bg-primary: #f4ecd8;+ --bg-secondary: #fdf6e3;+ --bg-tertiary: #eee8d5;+ --accent-primary: #b58900;+ --accent-secondary: #cb4b16;+ --accent-tertiary: #268bd2;+ --text-primary: #5c5144;+ --text-secondary: #657b83;+ --text-muted: #93a1a1;+ --border-color: #d3c6a6;+ --success-color: #859900;+ --warning-color: #b58900;+ --error-color: #dc322f;++ /* RGB variants */+ --bg-primary-rgb: 244, 236, 216;+ --bg-secondary-rgb: 253, 246, 227;+ --bg-tertiary-rgb: 238, 232, 213;+ --accent-primary-rgb: 181, 137, 0;+ --accent-secondary-rgb: 203, 75, 22;+ --accent-tertiary-rgb: 38, 139, 210;+ --text-primary-rgb: 92, 81, 68;+ --text-secondary-rgb: 101, 123, 131;+ --text-muted-rgb: 147, 161, 161;+ --border-color-rgb: 211, 198, 166;+ --success-color-rgb: 133, 153, 0;+ --warning-color-rgb: 181, 137, 0;+ --error-color-rgb: 220, 50, 47;++ /* Shadows and effects */+ --card-shadow: 0 2px 10px rgba(101, 82, 51, 0.1);+ --glow-effect: 0 0 10px rgba(181, 137, 0, 0.15);+ --gradient-bg: linear-gradient(135deg, #eee8d5 0%, #f4ecd8 100%);+ --overlay-color: rgba(92, 81, 68, 0.4);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;++ /* Aliases */+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}++/* Theme-specific adjustments */+[data-theme="sepia"] a {+ color: var(--accent-tertiary);+}+[data-theme="sepia"] a:hover {+ color: var(--accent-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/catppuccin.css b/src/local_deep_research/web/themes/dev/catppuccin.cssnew file mode 100644index 0000000000..5cba693c38--- /dev/null+++ b/src/local_deep_research/web/themes/dev/catppuccin.css@@ -0,0 +1,49 @@+/*---+name = "Catppuccin"+label = "Catppuccin"+icon = "fa-cat"+group = "dev"+type = "dark"+description = "Soothing pastel theme (Mocha variant)"+---*/+[data-theme="catppuccin"] {+ --bg-primary: #1e1e2e;+ --bg-secondary: #313244;+ --bg-tertiary: #45475a;+ --accent-primary: #cba6f7;+ --accent-secondary: #f5c2e7;+ --accent-tertiary: #89dceb;+ --text-primary: #cdd6f4;+ --text-secondary: #bac2de;+ --text-muted: #6c7086;+ --border-color: #585b70;+ --success-color: #a6e3a1;+ --warning-color: #f9e2af;+ --error-color: #f38ba8;++ --bg-primary-rgb: 30, 30, 46;+ --bg-secondary-rgb: 49, 50, 68;+ --bg-tertiary-rgb: 69, 71, 90;+ --accent-primary-rgb: 203, 166, 247;+ --accent-secondary-rgb: 245, 194, 231;+ --accent-tertiary-rgb: 137, 220, 235;+ --text-primary-rgb: 205, 214, 244;+ --text-secondary-rgb: 186, 194, 222;+ --text-muted-rgb: 108, 112, 134;+ --border-color-rgb: 88, 91, 112;+ --success-color-rgb: 166, 227, 161;+ --warning-color-rgb: 249, 226, 175;+ --error-color-rgb: 243, 139, 168;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);+ --glow-effect: 0 0 15px rgba(203, 166, 247, 0.2);+ --gradient-bg: linear-gradient(135deg, #313244 0%, #1e1e2e 100%);+ --overlay-color: rgba(30, 30, 46, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/dracula.css b/src/local_deep_research/web/themes/dev/dracula.cssnew file mode 100644index 0000000000..4c4860da78--- /dev/null+++ b/src/local_deep_research/web/themes/dev/dracula.css@@ -0,0 +1,49 @@+/*---+name = "Dracula"+label = "Dracula"+icon = "fa-ghost"+group = "dev"+type = "dark"+description = "Purple and pink dark theme"+---*/+[data-theme="dracula"] {+ --bg-primary: #282a36;+ --bg-secondary: #343746;+ --bg-tertiary: #44475a;+ --accent-primary: #bd93f9;+ --accent-secondary: #ff79c6;+ --accent-tertiary: #8be9fd;+ --text-primary: #f8f8f2;+ --text-secondary: #e2e2dc;+ --text-muted: #6272a4;+ --border-color: #44475a;+ --success-color: #50fa7b;+ --warning-color: #f1fa8c;+ --error-color: #ff5555;++ --bg-primary-rgb: 40, 42, 54;+ --bg-secondary-rgb: 52, 55, 70;+ --bg-tertiary-rgb: 68, 71, 90;+ --accent-primary-rgb: 189, 147, 249;+ --accent-secondary-rgb: 255, 121, 198;+ --accent-tertiary-rgb: 139, 233, 253;+ --text-primary-rgb: 248, 248, 242;+ --text-secondary-rgb: 226, 226, 220;+ --text-muted-rgb: 98, 114, 164;+ --border-color-rgb: 68, 71, 90;+ --success-color-rgb: 80, 250, 123;+ --warning-color-rgb: 241, 250, 140;+ --error-color-rgb: 255, 85, 85;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(189, 147, 249, 0.3);+ --gradient-bg: linear-gradient(135deg, #343746 0%, #282a36 100%);+ --overlay-color: rgba(40, 42, 54, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/gruvbox-dark.css b/src/local_deep_research/web/themes/dev/gruvbox-dark.cssnew file mode 100644index 0000000000..0e92fa3460--- /dev/null+++ b/src/local_deep_research/web/themes/dev/gruvbox-dark.css@@ -0,0 +1,49 @@+/*---+name = "Gruvbox Dark"+label = "Gruvbox Dark"+icon = "fa-square"+group = "dev"+type = "dark"+description = "Retro groove colors with warm tones (dark)"+---*/+[data-theme="gruvbox-dark"] {+ --bg-primary: #282828;+ --bg-secondary: #3c3836;+ --bg-tertiary: #504945;+ --accent-primary: #fe8019;+ --accent-secondary: #fabd2f;+ --accent-tertiary: #83a598;+ --text-primary: #ebdbb2;+ --text-secondary: #d5c4a1;+ --text-muted: #a89984;+ --border-color: #665c54;+ --success-color: #b8bb26;+ --warning-color: #fabd2f;+ --error-color: #fb4934;++ --bg-primary-rgb: 40, 40, 40;+ --bg-secondary-rgb: 60, 56, 54;+ --bg-tertiary-rgb: 80, 73, 69;+ --accent-primary-rgb: 254, 128, 25;+ --accent-secondary-rgb: 250, 189, 47;+ --accent-tertiary-rgb: 131, 165, 152;+ --text-primary-rgb: 235, 219, 178;+ --text-secondary-rgb: 213, 196, 161;+ --text-muted-rgb: 168, 153, 132;+ --border-color-rgb: 102, 92, 84;+ --success-color-rgb: 184, 187, 38;+ --warning-color-rgb: 250, 189, 47;+ --error-color-rgb: 251, 73, 52;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(254, 128, 25, 0.2);+ --gradient-bg: linear-gradient(135deg, #3c3836 0%, #282828 100%);+ --overlay-color: rgba(40, 40, 40, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/gruvbox-light.css b/src/local_deep_research/web/themes/dev/gruvbox-light.cssnew file mode 100644index 0000000000..6b2d1e41bf--- /dev/null+++ b/src/local_deep_research/web/themes/dev/gruvbox-light.css@@ -0,0 +1,49 @@+/*---+name = "Gruvbox Light"+label = "Gruvbox Light"+icon = "fa-square-full"+group = "dev"+type = "light"+description = "Retro groove colors with warm tones (light)"+---*/+[data-theme="gruvbox-light"] {+ --bg-primary: #fbf1c7;+ --bg-secondary: #ebdbb2;+ --bg-tertiary: #d5c4a1;+ --accent-primary: #d65d0e;+ --accent-secondary: #af3a03;+ --accent-tertiary: #427b58;+ --text-primary: #3c3836;+ --text-secondary: #504945;+ --text-muted: #7c6f64;+ --border-color: #bdae93;+ --success-color: #79740e;+ --warning-color: #b57614;+ --error-color: #9d0006;++ --bg-primary-rgb: 251, 241, 199;+ --bg-secondary-rgb: 235, 219, 178;+ --bg-tertiary-rgb: 213, 196, 161;+ --accent-primary-rgb: 214, 93, 14;+ --accent-secondary-rgb: 175, 58, 3;+ --accent-tertiary-rgb: 66, 123, 88;+ --text-primary-rgb: 60, 56, 54;+ --text-secondary-rgb: 80, 73, 69;+ --text-muted-rgb: 124, 111, 100;+ --border-color-rgb: 189, 174, 147;+ --success-color-rgb: 121, 116, 14;+ --warning-color-rgb: 181, 118, 20;+ --error-color-rgb: 157, 0, 6;++ --card-shadow: 0 2px 12px rgba(60, 56, 54, 0.1);+ --glow-effect: 0 0 10px rgba(214, 93, 14, 0.15);+ --gradient-bg: linear-gradient(135deg, #ebdbb2 0%, #fbf1c7 100%);+ --overlay-color: rgba(60, 56, 54, 0.3);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/monokai.css b/src/local_deep_research/web/themes/dev/monokai.cssnew file mode 100644index 0000000000..bbdaea6904--- /dev/null+++ b/src/local_deep_research/web/themes/dev/monokai.css@@ -0,0 +1,49 @@+/*---+name = "Monokai"+label = "Monokai"+icon = "fa-code"+group = "dev"+type = "dark"+description = "Vibrant colors on dark background"+---*/+[data-theme="monokai"] {+ --bg-primary: #272822;+ --bg-secondary: #3e3d32;+ --bg-tertiary: #49483e;+ --accent-primary: #a6e22e;+ --accent-secondary: #f92672;+ --accent-tertiary: #66d9ef;+ --text-primary: #f8f8f2;+ --text-secondary: #cfcfc2;+ --text-muted: #75715e;+ --border-color: #49483e;+ --success-color: #a6e22e;+ --warning-color: #e6db74;+ --error-color: #f92672;++ --bg-primary-rgb: 39, 40, 34;+ --bg-secondary-rgb: 62, 61, 50;+ --bg-tertiary-rgb: 73, 72, 62;+ --accent-primary-rgb: 166, 226, 46;+ --accent-secondary-rgb: 249, 38, 114;+ --accent-tertiary-rgb: 102, 217, 239;+ --text-primary-rgb: 248, 248, 242;+ --text-secondary-rgb: 207, 207, 194;+ --text-muted-rgb: 117, 113, 94;+ --border-color-rgb: 73, 72, 62;+ --success-color-rgb: 166, 226, 46;+ --warning-color-rgb: 230, 219, 116;+ --error-color-rgb: 249, 38, 114;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(166, 226, 46, 0.2);+ --gradient-bg: linear-gradient(135deg, #3e3d32 0%, #272822 100%);+ --overlay-color: rgba(39, 40, 34, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/nord.css b/src/local_deep_research/web/themes/dev/nord.cssnew file mode 100644index 0000000000..c7ba2555c9--- /dev/null+++ b/src/local_deep_research/web/themes/dev/nord.css@@ -0,0 +1,49 @@+/*---+name = "Nord"+label = "Nord"+icon = "fa-snowflake"+group = "dev"+type = "dark"+description = "Arctic, north-bluish color palette"+---*/+[data-theme="nord"] {+ --bg-primary: #2e3440;+ --bg-secondary: #3b4252;+ --bg-tertiary: #434c5e;+ --accent-primary: #88c0d0;+ --accent-secondary: #81a1c1;+ --accent-tertiary: #5e81ac;+ --text-primary: #eceff4;+ --text-secondary: #e5e9f0;+ --text-muted: #d8dee9;+ --border-color: #4c566a;+ --success-color: #a3be8c;+ --warning-color: #ebcb8b;+ --error-color: #bf616a;++ --bg-primary-rgb: 46, 52, 64;+ --bg-secondary-rgb: 59, 66, 82;+ --bg-tertiary-rgb: 67, 76, 94;+ --accent-primary-rgb: 136, 192, 208;+ --accent-secondary-rgb: 129, 161, 193;+ --accent-tertiary-rgb: 94, 129, 172;+ --text-primary-rgb: 236, 239, 244;+ --text-secondary-rgb: 229, 233, 240;+ --text-muted-rgb: 216, 222, 233;+ --border-color-rgb: 76, 86, 106;+ --success-color-rgb: 163, 190, 140;+ --warning-color-rgb: 235, 203, 139;+ --error-color-rgb: 191, 97, 106;++ --card-shadow: 0 4px 20px rgba(46, 52, 64, 0.5);+ --glow-effect: 0 0 15px rgba(136, 192, 208, 0.2);+ --gradient-bg: linear-gradient(135deg, #3b4252 0%, #2e3440 100%);+ --overlay-color: rgba(46, 52, 64, 0.7);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/one-dark.css b/src/local_deep_research/web/themes/dev/one-dark.cssnew file mode 100644index 0000000000..5d35997d3d--- /dev/null+++ b/src/local_deep_research/web/themes/dev/one-dark.css@@ -0,0 +1,49 @@+/*---+name = "One Dark"+label = "One Dark"+icon = "fa-atom"+group = "dev"+type = "dark"+description = "Atom editor inspired dark theme"+---*/+[data-theme="one-dark"] {+ --bg-primary: #21252b;+ --bg-secondary: #282c34;+ --bg-tertiary: #353b45;+ --accent-primary: #61afef;+ --accent-secondary: #c678dd;+ --accent-tertiary: #56b6c2;+ --text-primary: #abb2bf;+ --text-secondary: #9da5b4;+ --text-muted: #5c6370;+ --border-color: #3e4451;+ --success-color: #98c379;+ --warning-color: #e5c07b;+ --error-color: #e06c75;++ --bg-primary-rgb: 33, 37, 43;+ --bg-secondary-rgb: 40, 44, 52;+ --bg-tertiary-rgb: 53, 59, 69;+ --accent-primary-rgb: 97, 175, 239;+ --accent-secondary-rgb: 198, 120, 221;+ --accent-tertiary-rgb: 86, 182, 194;+ --text-primary-rgb: 171, 178, 191;+ --text-secondary-rgb: 157, 165, 180;+ --text-muted-rgb: 92, 99, 112;+ --border-color-rgb: 62, 68, 81;+ --success-color-rgb: 152, 195, 121;+ --warning-color-rgb: 229, 192, 123;+ --error-color-rgb: 224, 108, 117;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);+ --glow-effect: 0 0 15px rgba(97, 175, 239, 0.2);+ --gradient-bg: linear-gradient(135deg, #282c34 0%, #21252b 100%);+ --overlay-color: rgba(33, 37, 43, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/solarized-dark.css b/src/local_deep_research/web/themes/dev/solarized-dark.cssnew file mode 100644index 0000000000..b1f3c9b889--- /dev/null+++ b/src/local_deep_research/web/themes/dev/solarized-dark.css@@ -0,0 +1,49 @@+/*---+name = "Solarized Dark"+label = "Solarized Dark"+icon = "fa-adjust"+group = "dev"+type = "dark"+description = "Ethan Schoonover's precision color scheme (dark)"+---*/+[data-theme="solarized-dark"] {+ --bg-primary: #002b36;+ --bg-secondary: #073642;+ --bg-tertiary: #0a4351;+ --accent-primary: #268bd2;+ --accent-secondary: #2aa198;+ --accent-tertiary: #859900;+ --text-primary: #fdf6e3;+ --text-secondary: #eee8d5;+ --text-muted: #93a1a1;+ --border-color: #586e75;+ --success-color: #859900;+ --warning-color: #b58900;+ --error-color: #dc322f;++ --bg-primary-rgb: 0, 43, 54;+ --bg-secondary-rgb: 7, 54, 66;+ --bg-tertiary-rgb: 10, 67, 81;+ --accent-primary-rgb: 38, 139, 210;+ --accent-secondary-rgb: 42, 161, 152;+ --accent-tertiary-rgb: 133, 153, 0;+ --text-primary-rgb: 253, 246, 227;+ --text-secondary-rgb: 238, 232, 213;+ --text-muted-rgb: 147, 161, 161;+ --border-color-rgb: 88, 110, 117;+ --success-color-rgb: 133, 153, 0;+ --warning-color-rgb: 181, 137, 0;+ --error-color-rgb: 220, 50, 47;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);+ --glow-effect: 0 0 15px rgba(38, 139, 210, 0.2);+ --gradient-bg: linear-gradient(135deg, #073642 0%, #002b36 100%);+ --overlay-color: rgba(0, 43, 54, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/solarized-light.css b/src/local_deep_research/web/themes/dev/solarized-light.cssnew file mode 100644index 0000000000..35d4c8e144--- /dev/null+++ b/src/local_deep_research/web/themes/dev/solarized-light.css@@ -0,0 +1,49 @@+/*---+name = "Solarized Light"+label = "Solarized Light"+icon = "fa-circle"+group = "dev"+type = "light"+description = "Ethan Schoonover's precision color scheme (light)"+---*/+[data-theme="solarized-light"] {+ --bg-primary: #fdf6e3;+ --bg-secondary: #eee8d5;+ --bg-tertiary: #ddd6c3;+ --accent-primary: #268bd2;+ --accent-secondary: #2aa198;+ --accent-tertiary: #859900;+ --text-primary: #073642;+ --text-secondary: #586e75;+ --text-muted: #93a1a1;+ --border-color: #93a1a1;+ --success-color: #859900;+ --warning-color: #b58900;+ --error-color: #dc322f;++ --bg-primary-rgb: 253, 246, 227;+ --bg-secondary-rgb: 238, 232, 213;+ --bg-tertiary-rgb: 221, 214, 195;+ --accent-primary-rgb: 38, 139, 210;+ --accent-secondary-rgb: 42, 161, 152;+ --accent-tertiary-rgb: 133, 153, 0;+ --text-primary-rgb: 7, 54, 66;+ --text-secondary-rgb: 88, 110, 117;+ --text-muted-rgb: 147, 161, 161;+ --border-color-rgb: 147, 161, 161;+ --success-color-rgb: 133, 153, 0;+ --warning-color-rgb: 181, 137, 0;+ --error-color-rgb: 220, 50, 47;++ --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);+ --glow-effect: 0 0 10px rgba(38, 139, 210, 0.15);+ --gradient-bg: linear-gradient(135deg, #eee8d5 0%, #fdf6e3 100%);+ --overlay-color: rgba(7, 54, 66, 0.3);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/dev/tokyo-night.css b/src/local_deep_research/web/themes/dev/tokyo-night.cssnew file mode 100644index 0000000000..34e19c4bad--- /dev/null+++ b/src/local_deep_research/web/themes/dev/tokyo-night.css@@ -0,0 +1,49 @@+/*---+name = "Tokyo Night"+label = "Tokyo Night"+icon = "fa-city"+group = "dev"+type = "dark"+description = "Neon colors inspired by Tokyo lights"+---*/+[data-theme="tokyo-night"] {+ --bg-primary: #1a1b26;+ --bg-secondary: #24283b;+ --bg-tertiary: #343b58;+ --accent-primary: #7aa2f7;+ --accent-secondary: #bb9af7;+ --accent-tertiary: #7dcfff;+ --text-primary: #c0caf5;+ --text-secondary: #a9b1d6;+ --text-muted: #565f89;+ --border-color: #414868;+ --success-color: #9ece6a;+ --warning-color: #e0af68;+ --error-color: #f7768e;++ --bg-primary-rgb: 26, 27, 38;+ --bg-secondary-rgb: 36, 40, 59;+ --bg-tertiary-rgb: 52, 59, 88;+ --accent-primary-rgb: 122, 162, 247;+ --accent-secondary-rgb: 187, 154, 247;+ --accent-tertiary-rgb: 125, 207, 255;+ --text-primary-rgb: 192, 202, 245;+ --text-secondary-rgb: 169, 177, 214;+ --text-muted-rgb: 86, 95, 137;+ --border-color-rgb: 65, 72, 104;+ --success-color-rgb: 158, 206, 106;+ --warning-color-rgb: 224, 175, 104;+ --error-color-rgb: 247, 118, 142;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(122, 162, 247, 0.3);+ --gradient-bg: linear-gradient(135deg, #24283b 0%, #1a1b26 100%);+ --overlay-color: rgba(26, 27, 38, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/loader.py b/src/local_deep_research/web/themes/loader.pynew file mode 100644index 0000000000..30b7c3fe42--- /dev/null+++ b/src/local_deep_research/web/themes/loader.py@@ -0,0 +1,216 @@+"""+Theme Loader - Parse and load theme files with TOML frontmatter.+"""++import re+import tomllib+from functools import lru_cache+from pathlib import Path++from loguru import logger++from .schema import (+ REQUIRED_RGB_VARIANTS,+ REQUIRED_VARIABLES,+ ThemeMetadata,+)++# Pattern to match TOML frontmatter in CSS comments+# Matches: /*--- ... ---*/+FRONTMATTER_PATTERN = re.compile(r"/\*---\s*(.*?)\s*---\*/", re.DOTALL)++# Pattern to extract theme ID from CSS selector+THEME_ID_PATTERN = re.compile(r'\[data-theme="([^"]+)"\]')+++class ThemeLoader:+ """Loads and parses theme files from a directory."""++ def __init__(self, themes_dir: Path):+ """Initialize loader with themes directory path."""+ self.themes_dir = themes_dir+ self._cache: dict[str, ThemeMetadata] = {}++ def parse_frontmatter(self, css_content: str) -> dict:+ """Extract and parse TOML frontmatter from CSS file.++ Args:+ css_content: The CSS file content++ Returns:+ Parsed TOML as dictionary, or empty dict if no frontmatter+ """+ match = FRONTMATTER_PATTERN.search(css_content)+ if not match:+ return {}+ try:+ return tomllib.loads(match.group(1))+ except tomllib.TOMLDecodeError as e:+ logger.warning(f"Failed to parse theme frontmatter: {e}")+ return {}++ def extract_theme_id(self, css_content: str) -> str | None:+ """Extract theme ID from CSS selector.++ Args:+ css_content: The CSS file content++ Returns:+ Theme ID string or None if not found+ """+ match = THEME_ID_PATTERN.search(css_content)+ return match.group(1) if match else None++ def validate_css_variables(+ self, css_content: str, theme_id: str+ ) -> tuple[list[str], list[str]]:+ """Validate that all required CSS variables are defined.++ Args:+ css_content: The CSS file content+ theme_id: Theme identifier for logging++ Returns:+ Tuple of (missing_base_vars, missing_rgb_vars)+ """+ missing_base = [+ var for var in REQUIRED_VARIABLES if var not in css_content+ ]+ missing_rgb = [+ var for var in REQUIRED_RGB_VARIANTS if var not in css_content+ ]+ return missing_base, missing_rgb++ def load_theme(self, css_path: Path) -> ThemeMetadata | None:+ """Load a single theme from a CSS file.++ Args:+ css_path: Path to the CSS file++ Returns:+ ThemeMetadata object or None if loading failed+ """+ try:+ content = css_path.read_text(encoding="utf-8")+ meta = self.parse_frontmatter(content)++ # Get theme ID from frontmatter or extract from CSS+ theme_id = (+ meta.get("id")+ or self.extract_theme_id(content)+ or css_path.stem+ )++ # Determine group from parent directory name+ parent_name = css_path.parent.name+ default_group = (+ parent_name+ if parent_name in {"core", "nature", "dev", "research"}+ else "other"+ )++ # Auto-generate metadata if not provided+ if not meta:+ meta = {+ "id": theme_id,+ "label": theme_id.replace("-", " ").title(),+ "icon": "fa-palette",+ "group": default_group,+ }+ logger.debug(f"Auto-generated metadata for theme: {theme_id}")++ # Validate CSS variables+ missing_base, missing_rgb = self.validate_css_variables(+ content, theme_id+ )+ if missing_base:+ logger.warning(+ f"Theme {theme_id} missing base variables: {missing_base}"+ )+ if missing_rgb:+ logger.debug(+ f"Theme {theme_id} missing RGB variants: {missing_rgb}"+ )++ # Determine theme type (dark/light)+ theme_type = meta.get("type", "dark")+ if theme_type not in ("dark", "light"):+ theme_type = "dark"++ return ThemeMetadata(+ id=theme_id,+ label=meta.get(+ "label",+ meta.get("name", theme_id.replace("-", " ").title()),+ ),+ icon=meta.get("icon", "fa-palette"),+ group=meta.get("group", default_group),+ type=theme_type,+ description=meta.get("description", ""),+ author=meta.get("author", ""),+ css_path=css_path,+ )+ except Exception:+ logger.exception(f"Failed to load theme: {css_path}")+ return None++ def get_css_content(self, theme: ThemeMetadata) -> str:+ """Get CSS content for a theme, stripping frontmatter.++ Args:+ theme: ThemeMetadata object++ Returns:+ CSS content without frontmatter+ """+ if not theme.css_path or not theme.css_path.exists():+ return ""+ content = theme.css_path.read_text(encoding="utf-8")+ # Strip frontmatter+ return FRONTMATTER_PATTERN.sub("", content).strip()++ @lru_cache(maxsize=1)+ def load_all_themes(self) -> dict[str, ThemeMetadata]:+ """Load all themes from the themes directory.++ Scans subdirectories (core/, nature/, dev/, research/) for .css files.++ Returns:+ Dictionary mapping theme IDs to ThemeMetadata objects+ """+ themes: dict[str, ThemeMetadata] = {}++ # Add virtual "system" theme (no CSS file)+ themes["system"] = ThemeMetadata(+ id="system",+ label="System",+ icon="fa-desktop",+ group="system",+ type="dark", # Resolves at runtime based on OS preference+ description="Follow system color scheme preference",+ css_path=None,+ )++ # Scan subdirectories for theme files+ subdirs = ["core", "nature", "dev", "research"]+ for subdir in subdirs:+ dir_path = self.themes_dir / subdir+ if dir_path.exists():+ for css_file in sorted(dir_path.glob("*.css")):+ theme = self.load_theme(css_file)+ if theme:+ themes[theme.id] = theme++ # Also scan root themes directory for any loose theme files+ for css_file in sorted(self.themes_dir.glob("*.css")):+ theme = self.load_theme(css_file)+ if theme and theme.id not in themes:+ themes[theme.id] = theme++ logger.info(f"Loaded {len(themes)} themes from {self.themes_dir}")+ return themes++ def clear_cache(self) -> None:+ """Clear the theme cache (useful for development/hot-reload)."""+ self._cache.clear()+ self.load_all_themes.cache_clear()diff --git a/src/local_deep_research/web/themes/nature/forest.css b/src/local_deep_research/web/themes/nature/forest.cssnew file mode 100644index 0000000000..f77a58a273--- /dev/null+++ b/src/local_deep_research/web/themes/nature/forest.css@@ -0,0 +1,49 @@+/*---+name = "Forest"+label = "Forest"+icon = "fa-tree"+group = "nature"+type = "dark"+description = "Natural greens inspired by woodland"+---*/+[data-theme="forest"] {+ --bg-primary: #1a2f1a;+ --bg-secondary: #243524;+ --bg-tertiary: #2e4a2e;+ --accent-primary: #4caf50;+ --accent-secondary: #81c784;+ --accent-tertiary: #a5d6a7;+ --text-primary: #e8f5e9;+ --text-secondary: #c8e6c9;+ --text-muted: #a5d6a7;+ --border-color: #388e3c;+ --success-color: #69f0ae;+ --warning-color: #ffca28;+ --error-color: #ef5350;++ --bg-primary-rgb: 26, 47, 26;+ --bg-secondary-rgb: 36, 53, 36;+ --bg-tertiary-rgb: 46, 74, 46;+ --accent-primary-rgb: 76, 175, 80;+ --accent-secondary-rgb: 129, 199, 132;+ --accent-tertiary-rgb: 165, 214, 167;+ --text-primary-rgb: 232, 245, 233;+ --text-secondary-rgb: 200, 230, 201;+ --text-muted-rgb: 165, 214, 167;+ --border-color-rgb: 56, 142, 60;+ --success-color-rgb: 105, 240, 174;+ --warning-color-rgb: 255, 202, 40;+ --error-color-rgb: 239, 83, 80;++ --card-shadow: 0 4px 20px rgba(56, 142, 60, 0.25);+ --glow-effect: 0 0 15px rgba(76, 175, 80, 0.3);+ --gradient-bg: linear-gradient(135deg, #243524 0%, #1a2f1a 100%);+ --overlay-color: rgba(26, 47, 26, 0.7);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/nature/lavender.css b/src/local_deep_research/web/themes/nature/lavender.cssnew file mode 100644index 0000000000..270fee9d27--- /dev/null+++ b/src/local_deep_research/web/themes/nature/lavender.css@@ -0,0 +1,49 @@+/*---+name = "Lavender"+label = "Lavender"+icon = "fa-spa"+group = "nature"+type = "dark"+description = "Soft purple hues for a calm feel"+---*/+[data-theme="lavender"] {+ --bg-primary: #1e1e3f;+ --bg-secondary: #2a2a54;+ --bg-tertiary: #363669;+ --accent-primary: #b39ddb;+ --accent-secondary: #9575cd;+ --accent-tertiary: #7e57c2;+ --text-primary: #ede7f6;+ --text-secondary: #d1c4e9;+ --text-muted: #b39ddb;+ --border-color: #7e57c2;+ --success-color: #69f0ae;+ --warning-color: #ffe082;+ --error-color: #ff5252;++ --bg-primary-rgb: 30, 30, 63;+ --bg-secondary-rgb: 42, 42, 84;+ --bg-tertiary-rgb: 54, 54, 105;+ --accent-primary-rgb: 179, 157, 219;+ --accent-secondary-rgb: 149, 117, 205;+ --accent-tertiary-rgb: 126, 87, 194;+ --text-primary-rgb: 237, 231, 246;+ --text-secondary-rgb: 209, 196, 233;+ --text-muted-rgb: 179, 157, 219;+ --border-color-rgb: 126, 87, 194;+ --success-color-rgb: 105, 240, 174;+ --warning-color-rgb: 255, 224, 130;+ --error-color-rgb: 255, 82, 82;++ --card-shadow: 0 4px 20px rgba(126, 87, 194, 0.3);+ --glow-effect: 0 0 15px rgba(179, 157, 219, 0.3);+ --gradient-bg: linear-gradient(135deg, #2a2a54 0%, #1e1e3f 100%);+ --overlay-color: rgba(30, 30, 63, 0.7);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/nature/ocean.css b/src/local_deep_research/web/themes/nature/ocean.cssnew file mode 100644index 0000000000..0bd857339c--- /dev/null+++ b/src/local_deep_research/web/themes/nature/ocean.css@@ -0,0 +1,49 @@+/*---+name = "Ocean"+label = "Ocean"+icon = "fa-water"+group = "nature"+type = "dark"+description = "Deep sea blues and teals"+---*/+[data-theme="ocean"] {+ --bg-primary: #0c1821;+ --bg-secondary: #1b2838;+ --bg-tertiary: #2a3f54;+ --accent-primary: #00b4d8;+ --accent-secondary: #0096c7;+ --accent-tertiary: #48cae4;+ --text-primary: #e0f7fa;+ --text-secondary: #b2ebf2;+ --text-muted: #80deea;+ --border-color: #0077b6;+ --success-color: #00e676;+ --warning-color: #ffd54f;+ --error-color: #ff5252;++ --bg-primary-rgb: 12, 24, 33;+ --bg-secondary-rgb: 27, 40, 56;+ --bg-tertiary-rgb: 42, 63, 84;+ --accent-primary-rgb: 0, 180, 216;+ --accent-secondary-rgb: 0, 150, 199;+ --accent-tertiary-rgb: 72, 202, 228;+ --text-primary-rgb: 224, 247, 250;+ --text-secondary-rgb: 178, 235, 242;+ --text-muted-rgb: 128, 222, 234;+ --border-color-rgb: 0, 119, 182;+ --success-color-rgb: 0, 230, 118;+ --warning-color-rgb: 255, 213, 79;+ --error-color-rgb: 255, 82, 82;++ --card-shadow: 0 4px 20px rgba(0, 119, 182, 0.3);+ --glow-effect: 0 0 15px rgba(0, 180, 216, 0.3);+ --gradient-bg: linear-gradient(135deg, #1b2838 0%, #0c1821 100%);+ --overlay-color: rgba(12, 24, 33, 0.7);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/nature/rose.css b/src/local_deep_research/web/themes/nature/rose.cssnew file mode 100644index 0000000000..d53b5b3f79--- /dev/null+++ b/src/local_deep_research/web/themes/nature/rose.css@@ -0,0 +1,49 @@+/*---+name = "Rose"+label = "Rose"+icon = "fa-heart"+group = "nature"+type = "dark"+description = "Soft pink and magenta hues"+---*/+[data-theme="rose"] {+ --bg-primary: #2d1b2d;+ --bg-secondary: #3d2640;+ --bg-tertiary: #4d3154;+ --accent-primary: #f48fb1;+ --accent-secondary: #f06292;+ --accent-tertiary: #ec407a;+ --text-primary: #fce4ec;+ --text-secondary: #f8bbd0;+ --text-muted: #f48fb1;+ --border-color: #ad1457;+ --success-color: #69f0ae;+ --warning-color: #ffe082;+ --error-color: #ff5252;++ --bg-primary-rgb: 45, 27, 45;+ --bg-secondary-rgb: 61, 38, 64;+ --bg-tertiary-rgb: 77, 49, 84;+ --accent-primary-rgb: 244, 143, 177;+ --accent-secondary-rgb: 240, 98, 146;+ --accent-tertiary-rgb: 236, 64, 122;+ --text-primary-rgb: 252, 228, 236;+ --text-secondary-rgb: 248, 187, 208;+ --text-muted-rgb: 244, 143, 177;+ --border-color-rgb: 173, 20, 87;+ --success-color-rgb: 105, 240, 174;+ --warning-color-rgb: 255, 224, 130;+ --error-color-rgb: 255, 82, 82;++ --card-shadow: 0 4px 20px rgba(173, 20, 87, 0.3);+ --glow-effect: 0 0 15px rgba(244, 143, 177, 0.3);+ --gradient-bg: linear-gradient(135deg, #3d2640 0%, #2d1b2d 100%);+ --overlay-color: rgba(45, 27, 45, 0.7);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/nature/sunset.css b/src/local_deep_research/web/themes/nature/sunset.cssnew file mode 100644index 0000000000..9e3d61f822--- /dev/null+++ b/src/local_deep_research/web/themes/nature/sunset.css@@ -0,0 +1,49 @@+/*---+name = "Sunset"+label = "Sunset"+icon = "fa-sun"+group = "nature"+type = "dark"+description = "Warm orange and pink tones"+---*/+[data-theme="sunset"] {+ --bg-primary: #1a1a2e;+ --bg-secondary: #2d2d44;+ --bg-tertiary: #3d3d5c;+ --accent-primary: #ff6b6b;+ --accent-secondary: #feca57;+ --accent-tertiary: #ff9ff3;+ --text-primary: #ffeaa7;+ --text-secondary: #fdcb6e;+ --text-muted: #fab1a0;+ --border-color: #e17055;+ --success-color: #00d2d3;+ --warning-color: #feca57;+ --error-color: #ff6b6b;++ --bg-primary-rgb: 26, 26, 46;+ --bg-secondary-rgb: 45, 45, 68;+ --bg-tertiary-rgb: 61, 61, 92;+ --accent-primary-rgb: 255, 107, 107;+ --accent-secondary-rgb: 254, 202, 87;+ --accent-tertiary-rgb: 255, 159, 243;+ --text-primary-rgb: 255, 234, 167;+ --text-secondary-rgb: 253, 203, 110;+ --text-muted-rgb: 250, 177, 160;+ --border-color-rgb: 225, 112, 85;+ --success-color-rgb: 0, 210, 211;+ --warning-color-rgb: 254, 202, 87;+ --error-color-rgb: 255, 107, 107;++ --card-shadow: 0 4px 20px rgba(225, 112, 85, 0.3);+ --glow-effect: 0 0 15px rgba(255, 107, 107, 0.3);+ --gradient-bg: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);+ --overlay-color: rgba(26, 26, 46, 0.7);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/ayu-mirage.css b/src/local_deep_research/web/themes/research/ayu-mirage.cssnew file mode 100644index 0000000000..da0b3b1b59--- /dev/null+++ b/src/local_deep_research/web/themes/research/ayu-mirage.css@@ -0,0 +1,49 @@+/*---+name = "Ayu Mirage"+label = "Ayu Mirage"+icon = "fa-mountain-sun"+group = "research"+type = "dark"+description = "Modern minimalist twilight aesthetic"+---*/+[data-theme="ayu-mirage"] {+ --bg-primary: #1F2430;+ --bg-secondary: #242936;+ --bg-tertiary: #2D3440;+ --accent-primary: #FFCC66;+ --accent-secondary: #73D0FF;+ --accent-tertiary: #87D96C;+ --text-primary: #CCCAC2;+ --text-secondary: #B8CFE6;+ --text-muted: #707A8C;+ --border-color: #3D4455;+ --success-color: #87D96C;+ --warning-color: #FFD173;+ --error-color: #FF6666;++ --bg-primary-rgb: 31, 36, 48;+ --bg-secondary-rgb: 36, 41, 54;+ --bg-tertiary-rgb: 45, 52, 64;+ --accent-primary-rgb: 255, 204, 102;+ --accent-secondary-rgb: 115, 208, 255;+ --accent-tertiary-rgb: 135, 217, 108;+ --text-primary-rgb: 204, 202, 194;+ --text-secondary-rgb: 184, 207, 230;+ --text-muted-rgb: 112, 122, 140;+ --border-color-rgb: 61, 68, 85;+ --success-color-rgb: 135, 217, 108;+ --warning-color-rgb: 255, 209, 115;+ --error-color-rgb: 255, 102, 102;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);+ --glow-effect: 0 0 15px rgba(255, 204, 102, 0.2);+ --gradient-bg: linear-gradient(135deg, #242936 0%, #1F2430 100%);+ --overlay-color: rgba(31, 36, 48, 0.85);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/everforest-dark.css b/src/local_deep_research/web/themes/research/everforest-dark.cssnew file mode 100644index 0000000000..341e925de4--- /dev/null+++ b/src/local_deep_research/web/themes/research/everforest-dark.css@@ -0,0 +1,49 @@+/*---+name = "Everforest Dark"+label = "Everforest Dark"+icon = "fa-leaf"+group = "research"+type = "dark"+description = "Green-based theme for eye protection"+---*/+[data-theme="everforest-dark"] {+ --bg-primary: #2D353B;+ --bg-secondary: #343F44;+ --bg-tertiary: #3D484D;+ --accent-primary: #A7C080;+ --accent-secondary: #83C092;+ --accent-tertiary: #7FBBB3;+ --text-primary: #D3C6AA;+ --text-secondary: #9DA9A0;+ --text-muted: #859289;+ --border-color: #4F585E;+ --success-color: #A7C080;+ --warning-color: #DBBC7F;+ --error-color: #E67E80;++ --bg-primary-rgb: 45, 53, 59;+ --bg-secondary-rgb: 52, 63, 68;+ --bg-tertiary-rgb: 61, 72, 77;+ --accent-primary-rgb: 167, 192, 128;+ --accent-secondary-rgb: 131, 192, 146;+ --accent-tertiary-rgb: 127, 187, 179;+ --text-primary-rgb: 211, 198, 170;+ --text-secondary-rgb: 157, 169, 160;+ --text-muted-rgb: 133, 146, 137;+ --border-color-rgb: 79, 88, 94;+ --success-color-rgb: 167, 192, 128;+ --warning-color-rgb: 219, 188, 127;+ --error-color-rgb: 230, 126, 128;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);+ --glow-effect: 0 0 15px rgba(167, 192, 128, 0.2);+ --gradient-bg: linear-gradient(135deg, #343F44 0%, #2D353B 100%);+ --overlay-color: rgba(45, 53, 59, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/everforest-light.css b/src/local_deep_research/web/themes/research/everforest-light.cssnew file mode 100644index 0000000000..5e00c2dd3b--- /dev/null+++ b/src/local_deep_research/web/themes/research/everforest-light.css@@ -0,0 +1,49 @@+/*---+name = "Everforest Light"+label = "Everforest Light"+icon = "fa-seedling"+group = "research"+type = "light"+description = "Soft green warmth for daytime"+---*/+[data-theme="everforest-light"] {+ --bg-primary: #FDF6E3;+ --bg-secondary: #F4F0D9;+ --bg-tertiary: #E6E2CC;+ --accent-primary: #8DA101;+ --accent-secondary: #35A77C;+ --accent-tertiary: #3A94C5;+ --text-primary: #5C6A72;+ --text-secondary: #829181;+ --text-muted: #A6B0A0;+ --border-color: #E0DCC7;+ --success-color: #8DA101;+ --warning-color: #DFA000;+ --error-color: #F85552;++ --bg-primary-rgb: 253, 246, 227;+ --bg-secondary-rgb: 244, 240, 217;+ --bg-tertiary-rgb: 230, 226, 204;+ --accent-primary-rgb: 141, 161, 1;+ --accent-secondary-rgb: 53, 167, 124;+ --accent-tertiary-rgb: 58, 148, 197;+ --text-primary-rgb: 92, 106, 114;+ --text-secondary-rgb: 130, 145, 129;+ --text-muted-rgb: 166, 176, 160;+ --border-color-rgb: 224, 220, 199;+ --success-color-rgb: 141, 161, 1;+ --warning-color-rgb: 223, 160, 0;+ --error-color-rgb: 248, 85, 82;++ --card-shadow: 0 2px 12px rgba(92, 106, 114, 0.08);+ --glow-effect: 0 0 10px rgba(141, 161, 1, 0.15);+ --gradient-bg: linear-gradient(135deg, #F4F0D9 0%, #FDF6E3 100%);+ --overlay-color: rgba(92, 106, 114, 0.2);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/flexoki-dark.css b/src/local_deep_research/web/themes/research/flexoki-dark.cssnew file mode 100644index 0000000000..1452320cf2--- /dev/null+++ b/src/local_deep_research/web/themes/research/flexoki-dark.css@@ -0,0 +1,49 @@+/*---+name = "Flexoki Dark"+label = "Flexoki Dark"+icon = "fa-pen-nib"+group = "research"+type = "dark"+description = "Ink-inspired theme for prose and code"+---*/+[data-theme="flexoki-dark"] {+ --bg-primary: #100F0F;+ --bg-secondary: #1C1B1A;+ --bg-tertiary: #282726;+ --accent-primary: #DA702C;+ --accent-secondary: #879A39;+ --accent-tertiary: #4385BE;+ --text-primary: #CECDC3;+ --text-secondary: #B7B5AC;+ --text-muted: #878580;+ --border-color: #403E3C;+ --success-color: #879A39;+ --warning-color: #D0A215;+ --error-color: #D14D41;++ --bg-primary-rgb: 16, 15, 15;+ --bg-secondary-rgb: 28, 27, 26;+ --bg-tertiary-rgb: 40, 39, 38;+ --accent-primary-rgb: 218, 112, 44;+ --accent-secondary-rgb: 135, 154, 57;+ --accent-tertiary-rgb: 67, 133, 190;+ --text-primary-rgb: 206, 205, 195;+ --text-secondary-rgb: 183, 181, 172;+ --text-muted-rgb: 135, 133, 128;+ --border-color-rgb: 64, 62, 60;+ --success-color-rgb: 135, 154, 57;+ --warning-color-rgb: 208, 162, 21;+ --error-color-rgb: 209, 77, 65;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(218, 112, 44, 0.2);+ --gradient-bg: linear-gradient(135deg, #1C1B1A 0%, #100F0F 100%);+ --overlay-color: rgba(16, 15, 15, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/flexoki-light.css b/src/local_deep_research/web/themes/research/flexoki-light.cssnew file mode 100644index 0000000000..598cc74c01--- /dev/null+++ b/src/local_deep_research/web/themes/research/flexoki-light.css@@ -0,0 +1,49 @@+/*---+name = "Flexoki Light"+label = "Flexoki Light"+icon = "fa-feather"+group = "research"+type = "light"+description = "Paper-inspired warm reading tones"+---*/+[data-theme="flexoki-light"] {+ --bg-primary: #FFFCF0;+ --bg-secondary: #F2F0E5;+ --bg-tertiary: #E6E4D9;+ --accent-primary: #BC5215;+ --accent-secondary: #66800B;+ --accent-tertiary: #205EA6;+ --text-primary: #100F0F;+ --text-secondary: #343331;+ --text-muted: #6F6E69;+ --border-color: #CECDC3;+ --success-color: #66800B;+ --warning-color: #AD8301;+ --error-color: #AF3029;++ --bg-primary-rgb: 255, 252, 240;+ --bg-secondary-rgb: 242, 240, 229;+ --bg-tertiary-rgb: 230, 228, 217;+ --accent-primary-rgb: 188, 82, 21;+ --accent-secondary-rgb: 102, 128, 11;+ --accent-tertiary-rgb: 32, 94, 166;+ --text-primary-rgb: 16, 15, 15;+ --text-secondary-rgb: 52, 51, 49;+ --text-muted-rgb: 111, 110, 105;+ --border-color-rgb: 206, 205, 195;+ --success-color-rgb: 102, 128, 11;+ --warning-color-rgb: 173, 131, 1;+ --error-color-rgb: 175, 48, 41;++ --card-shadow: 0 2px 12px rgba(16, 15, 15, 0.08);+ --glow-effect: 0 0 10px rgba(188, 82, 21, 0.15);+ --gradient-bg: linear-gradient(135deg, #F2F0E5 0%, #FFFCF0 100%);+ --overlay-color: rgba(16, 15, 15, 0.3);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/kanagawa.css b/src/local_deep_research/web/themes/research/kanagawa.cssnew file mode 100644index 0000000000..292d5518b6--- /dev/null+++ b/src/local_deep_research/web/themes/research/kanagawa.css@@ -0,0 +1,49 @@+/*---+name = "Kanagawa"+label = "Kanagawa"+icon = "fa-torii-gate"+group = "research"+type = "dark"+description = "Japanese-inspired, The Great Wave palette"+---*/+[data-theme="kanagawa"] {+ --bg-primary: #1F1F28;+ --bg-secondary: #2A2A37;+ --bg-tertiary: #363646;+ --accent-primary: #7E9CD8;+ --accent-secondary: #957FB8;+ --accent-tertiary: #7AA89F;+ --text-primary: #DCD7BA;+ --text-secondary: #C8C093;+ --text-muted: #727169;+ --border-color: #54546D;+ --success-color: #98BB6C;+ --warning-color: #E6C384;+ --error-color: #C34043;++ --bg-primary-rgb: 31, 31, 40;+ --bg-secondary-rgb: 42, 42, 55;+ --bg-tertiary-rgb: 54, 54, 70;+ --accent-primary-rgb: 126, 156, 216;+ --accent-secondary-rgb: 149, 127, 184;+ --accent-tertiary-rgb: 122, 168, 159;+ --text-primary-rgb: 220, 215, 186;+ --text-secondary-rgb: 200, 192, 147;+ --text-muted-rgb: 114, 113, 105;+ --border-color-rgb: 84, 84, 109;+ --success-color-rgb: 152, 187, 108;+ --warning-color-rgb: 230, 195, 132;+ --error-color-rgb: 195, 64, 67;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(126, 156, 216, 0.2);+ --gradient-bg: linear-gradient(135deg, #2A2A37 0%, #1F1F28 100%);+ --overlay-color: rgba(31, 31, 40, 0.85);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/light-owl.css b/src/local_deep_research/web/themes/research/light-owl.cssnew file mode 100644index 0000000000..f533f3a378--- /dev/null+++ b/src/local_deep_research/web/themes/research/light-owl.css@@ -0,0 +1,49 @@+/*---+name = "Light Owl"+label = "Light Owl"+icon = "fa-dove"+group = "research"+type = "light"+description = "Accessibility-focused for daylight"+---*/+[data-theme="light-owl"] {+ --bg-primary: #F0F0F0;+ --bg-secondary: #FAFAFA;+ --bg-tertiary: #E0E0E0;+ --accent-primary: #4876D6;+ --accent-secondary: #994CC3;+ --accent-tertiary: #0C969B;+ --text-primary: #403F53;+ --text-secondary: #5C5C72;+ --text-muted: #90A7B2;+ --border-color: #D6D6D6;+ --success-color: #4CA64C;+ --warning-color: #DAAA01;+ --error-color: #DE3D3B;++ --bg-primary-rgb: 240, 240, 240;+ --bg-secondary-rgb: 250, 250, 250;+ --bg-tertiary-rgb: 224, 224, 224;+ --accent-primary-rgb: 72, 118, 214;+ --accent-secondary-rgb: 153, 76, 195;+ --accent-tertiary-rgb: 12, 150, 155;+ --text-primary-rgb: 64, 63, 83;+ --text-secondary-rgb: 92, 92, 114;+ --text-muted-rgb: 144, 167, 178;+ --border-color-rgb: 214, 214, 214;+ --success-color-rgb: 76, 166, 76;+ --warning-color-rgb: 218, 170, 1;+ --error-color-rgb: 222, 61, 59;++ --card-shadow: 0 2px 12px rgba(64, 63, 83, 0.08);+ --glow-effect: 0 0 10px rgba(72, 118, 214, 0.15);+ --gradient-bg: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);+ --overlay-color: rgba(64, 63, 83, 0.2);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/night-owl.css b/src/local_deep_research/web/themes/research/night-owl.cssnew file mode 100644index 0000000000..c77c0622fa--- /dev/null+++ b/src/local_deep_research/web/themes/research/night-owl.css@@ -0,0 +1,49 @@+/*---+name = "Night Owl"+label = "Night Owl"+icon = "fa-crow"+group = "research"+type = "dark"+description = "Accessibility-focused for low light"+---*/+[data-theme="night-owl"] {+ --bg-primary: #011627;+ --bg-secondary: #0b2942;+ --bg-tertiary: #1d3b53;+ --accent-primary: #82aaff;+ --accent-secondary: #c792ea;+ --accent-tertiary: #7fdbca;+ --text-primary: #d6deeb;+ --text-secondary: #89a4bb;+ --text-muted: #5f7e97;+ --border-color: #234d70;+ --success-color: #9CCC65;+ --warning-color: #FFCA28;+ --error-color: #EF5350;++ --bg-primary-rgb: 1, 22, 39;+ --bg-secondary-rgb: 11, 41, 66;+ --bg-tertiary-rgb: 29, 59, 83;+ --accent-primary-rgb: 130, 170, 255;+ --accent-secondary-rgb: 199, 146, 234;+ --accent-tertiary-rgb: 127, 219, 202;+ --text-primary-rgb: 214, 222, 235;+ --text-secondary-rgb: 137, 164, 187;+ --text-muted-rgb: 95, 126, 151;+ --border-color-rgb: 35, 77, 112;+ --success-color-rgb: 156, 204, 101;+ --warning-color-rgb: 255, 202, 40;+ --error-color-rgb: 239, 83, 80;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);+ --glow-effect: 0 0 15px rgba(130, 170, 255, 0.2);+ --gradient-bg: linear-gradient(135deg, #0b2942 0%, #011627 100%);+ --overlay-color: rgba(1, 22, 39, 0.85);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/palenight.css b/src/local_deep_research/web/themes/research/palenight.cssnew file mode 100644index 0000000000..953affbb1c--- /dev/null+++ b/src/local_deep_research/web/themes/research/palenight.css@@ -0,0 +1,49 @@+/*---+name = "Palenight"+label = "Palenight"+icon = "fa-moon"+group = "research"+type = "dark"+description = "Material Design inspired purple tones"+---*/+[data-theme="palenight"] {+ --bg-primary: #292D3E;+ --bg-secondary: #303348;+ --bg-tertiary: #3a3e52;+ --accent-primary: #82aaff;+ --accent-secondary: #c792ea;+ --accent-tertiary: #89ddff;+ --text-primary: #A6ACCD;+ --text-secondary: #959dcb;+ --text-muted: #676E95;+ --border-color: #4e5579;+ --success-color: #c3e88d;+ --warning-color: #ffcb6b;+ --error-color: #ff5370;++ --bg-primary-rgb: 41, 45, 62;+ --bg-secondary-rgb: 48, 51, 72;+ --bg-tertiary-rgb: 58, 62, 82;+ --accent-primary-rgb: 130, 170, 255;+ --accent-secondary-rgb: 199, 146, 234;+ --accent-tertiary-rgb: 137, 221, 255;+ --text-primary-rgb: 166, 172, 205;+ --text-secondary-rgb: 149, 157, 203;+ --text-muted-rgb: 103, 110, 149;+ --border-color-rgb: 78, 85, 121;+ --success-color-rgb: 195, 232, 141;+ --warning-color-rgb: 255, 203, 107;+ --error-color-rgb: 255, 83, 112;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);+ --glow-effect: 0 0 15px rgba(130, 170, 255, 0.25);+ --gradient-bg: linear-gradient(135deg, #303348 0%, #292D3E 100%);+ --overlay-color: rgba(41, 45, 62, 0.85);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/rose-pine-dawn.css b/src/local_deep_research/web/themes/research/rose-pine-dawn.cssnew file mode 100644index 0000000000..af2056be9b--- /dev/null+++ b/src/local_deep_research/web/themes/research/rose-pine-dawn.css@@ -0,0 +1,49 @@+/*---+name = "Rosé Pine Dawn"+label = "Rosé Pine Dawn"+icon = "fa-cloud-sun"+group = "research"+type = "light"+description = "Rosé Pine for daylight"+---*/+[data-theme="rose-pine-dawn"] {+ --bg-primary: #faf4ed;+ --bg-secondary: #fffaf3;+ --bg-tertiary: #f2e9e1;+ --accent-primary: #d7827e;+ --accent-secondary: #907aa9;+ --accent-tertiary: #56949f;+ --text-primary: #575279;+ --text-secondary: #797593;+ --text-muted: #9893a5;+ --border-color: #dfdad9;+ --success-color: #56949f;+ --warning-color: #ea9d34;+ --error-color: #b4637a;++ --bg-primary-rgb: 250, 244, 237;+ --bg-secondary-rgb: 255, 250, 243;+ --bg-tertiary-rgb: 242, 233, 225;+ --accent-primary-rgb: 215, 130, 126;+ --accent-secondary-rgb: 144, 122, 169;+ --accent-tertiary-rgb: 86, 148, 159;+ --text-primary-rgb: 87, 82, 121;+ --text-secondary-rgb: 121, 117, 147;+ --text-muted-rgb: 152, 147, 165;+ --border-color-rgb: 223, 218, 217;+ --success-color-rgb: 86, 148, 159;+ --warning-color-rgb: 234, 157, 52;+ --error-color-rgb: 180, 99, 122;++ --card-shadow: 0 2px 12px rgba(87, 82, 121, 0.08);+ --glow-effect: 0 0 10px rgba(215, 130, 126, 0.15);+ --gradient-bg: linear-gradient(135deg, #fffaf3 0%, #faf4ed 100%);+ --overlay-color: rgba(87, 82, 121, 0.2);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 0, 0, 0;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/rose-pine.css b/src/local_deep_research/web/themes/research/rose-pine.cssnew file mode 100644index 0000000000..2d60fe4008--- /dev/null+++ b/src/local_deep_research/web/themes/research/rose-pine.css@@ -0,0 +1,49 @@+/*---+name = "Rosé Pine"+label = "Rosé Pine"+icon = "fa-seedling"+group = "research"+type = "dark"+description = "Warm and soft soho vibes"+---*/+[data-theme="rose-pine"] {+ --bg-primary: #191724;+ --bg-secondary: #1f1d2e;+ --bg-tertiary: #26233a;+ --accent-primary: #ebbcba;+ --accent-secondary: #c4a7e7;+ --accent-tertiary: #9ccfd8;+ --text-primary: #e0def4;+ --text-secondary: #908caa;+ --text-muted: #6e6a86;+ --border-color: #403d52;+ --success-color: #9ccfd8;+ --warning-color: #f6c177;+ --error-color: #eb6f92;++ --bg-primary-rgb: 25, 23, 36;+ --bg-secondary-rgb: 31, 29, 46;+ --bg-tertiary-rgb: 38, 35, 58;+ --accent-primary-rgb: 235, 188, 186;+ --accent-secondary-rgb: 196, 167, 231;+ --accent-tertiary-rgb: 156, 207, 216;+ --text-primary-rgb: 224, 222, 244;+ --text-secondary-rgb: 144, 140, 170;+ --text-muted-rgb: 110, 106, 134;+ --border-color-rgb: 64, 61, 82;+ --success-color-rgb: 156, 207, 216;+ --warning-color-rgb: 246, 193, 119;+ --error-color-rgb: 235, 111, 146;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+ --glow-effect: 0 0 15px rgba(235, 188, 186, 0.2);+ --gradient-bg: linear-gradient(135deg, #1f1d2e 0%, #191724 100%);+ --overlay-color: rgba(25, 23, 36, 0.8);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/research/vesper.css b/src/local_deep_research/web/themes/research/vesper.cssnew file mode 100644index 0000000000..8443dd6958--- /dev/null+++ b/src/local_deep_research/web/themes/research/vesper.css@@ -0,0 +1,49 @@+/*---+name = "Vesper"+label = "Vesper"+icon = "fa-fire"+group = "research"+type = "dark"+description = "Warm peppermint and orange accents"+---*/+[data-theme="vesper"] {+ --bg-primary: #101010;+ --bg-secondary: #1C1C1C;+ --bg-tertiary: #282828;+ --accent-primary: #FFC799;+ --accent-secondary: #60CDAB;+ --accent-tertiary: #FFCFA8;+ --text-primary: #FFFFFF;+ --text-secondary: #A0A0A0;+ --text-muted: #606060;+ --border-color: #333333;+ --success-color: #60CDAB;+ --warning-color: #FFC799;+ --error-color: #F07171;++ --bg-primary-rgb: 16, 16, 16;+ --bg-secondary-rgb: 28, 28, 28;+ --bg-tertiary-rgb: 40, 40, 40;+ --accent-primary-rgb: 255, 199, 153;+ --accent-secondary-rgb: 96, 205, 171;+ --accent-tertiary-rgb: 255, 207, 168;+ --text-primary-rgb: 255, 255, 255;+ --text-secondary-rgb: 160, 160, 160;+ --text-muted-rgb: 96, 96, 96;+ --border-color-rgb: 51, 51, 51;+ --success-color-rgb: 96, 205, 171;+ --warning-color-rgb: 255, 199, 153;+ --error-color-rgb: 240, 113, 113;++ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);+ --glow-effect: 0 0 15px rgba(255, 199, 153, 0.2);+ --gradient-bg: linear-gradient(135deg, #1C1C1C 0%, #101010 100%);+ --overlay-color: rgba(16, 16, 16, 0.85);+ --backdrop-blur: blur(10px);++ /* Theme-aware colors for shadows and highlights */+ --shadow-color-rgb: 0, 0, 0;+ --highlight-color-rgb: 255, 255, 255;+ --primary-color: var(--accent-primary);+ --card-bg: var(--bg-secondary);+}diff --git a/src/local_deep_research/web/themes/schema.py b/src/local_deep_research/web/themes/schema.pynew file mode 100644index 0000000000..ae1bc8e371--- /dev/null+++ b/src/local_deep_research/web/themes/schema.py@@ -0,0 +1,84 @@+"""+Theme Schema - Data structures for theme metadata.+"""++from dataclasses import dataclass+from pathlib import Path+from typing import Literal+++# Required CSS variables that every theme must define+REQUIRED_VARIABLES: list[str] = [+ "--bg-primary",+ "--bg-secondary",+ "--bg-tertiary",+ "--accent-primary",+ "--accent-secondary",+ "--accent-tertiary",+ "--text-primary",+ "--text-secondary",+ "--text-muted",+ "--border-color",+ "--success-color",+ "--warning-color",+ "--error-color",+]++# RGB variants for rgba() usage+REQUIRED_RGB_VARIANTS: list[str] = [+ "--bg-primary-rgb",+ "--bg-secondary-rgb",+ "--bg-tertiary-rgb",+ "--accent-primary-rgb",+ "--accent-secondary-rgb",+ "--accent-tertiary-rgb",+ "--text-primary-rgb",+ "--text-secondary-rgb",+ "--text-muted-rgb",+ "--border-color-rgb",+ "--success-color-rgb",+ "--warning-color-rgb",+ "--error-color-rgb",+]++# Valid theme groups+ThemeGroup = Literal["core", "nature", "dev", "research", "system", "other"]++# Valid theme types (for luminance classification)+ThemeType = Literal["dark", "light"]+++@dataclass+class ThemeMetadata:+ """Theme metadata extracted from CSS frontmatter."""++ id: str # kebab-case identifier (e.g., "nord", "dracula")+ label: str # Display label for UI (e.g., "Nord", "Dracula")+ icon: str # FontAwesome icon class (e.g., "fa-snowflake")+ group: ThemeGroup # Category for grouping in UI+ type: ThemeType = "dark" # dark/light for luminance classification+ description: str = "" # Optional description+ author: str = "" # Optional author attribution+ css_path: Path | None = (+ None # Path to CSS file (None for virtual themes like "system")+ )++ def to_dict(self) -> dict:+ """Convert to dictionary for JSON serialization."""+ return {+ "label": self.label,+ "icon": self.icon,+ "group": self.group,+ "type": self.type,+ }+++# Group labels for UI display+GROUP_LABELS: dict[str, str] = {+ "core": "Core Themes",+ "nature": "Nature",+ "dev": "Developer Themes",+ "research": "Research & Reading",+ "system": "System",+ "other": "Other",+}diff --git a/src/local_deep_research/web/utils/theme_helper.py b/src/local_deep_research/web/utils/theme_helper.pyindex 3d4130c0ee..0f57bf6a46 100644--- a/src/local_deep_research/web/utils/theme_helper.py+++ b/src/local_deep_research/web/utils/theme_helper.py@@ -1,241 +1,79 @@"""-Theme Helper for Flask-Auto-detects available themes from themes.css+Theme Helper for Flask - Compatibility Layer++This module provides backward-compatible Flask integration for the theme system.+It wraps the ThemeRegistry from the themes module.++Usage:+ from local_deep_research.web.utils.theme_helper import theme_helper+ theme_helper.init_app(app)"""-import re-from pathlib import Path-from functools import lru_cache-from markupsafe import Markup+from flask import Flaskfrom loguru import logger+from ..themes import (+ get_theme_metadata,+ get_themes,+ get_themes_json,+ theme_registry,+)+class ThemeHelper:- """Helper class for theme management with Flask"""-- # Theme metadata - icons and groups for each theme- # Only needs to be updated when adding NEW themes (not for validation)- THEME_METADATA = {- # Core themes- "hashed": {"label": "Hashed", "icon": "fa-hashtag", "group": "core"},- "light": {"label": "Light", "icon": "fa-sun", "group": "core"},- "sepia": {"label": "Sepia", "icon": "fa-book-open", "group": "core"},- "high-contrast": {- "label": "High Contrast",- "icon": "fa-eye",- "group": "core",- },- "midnight": {- "label": "Midnight",- "icon": "fa-cloud-moon",- "group": "core",- },- # Nature themes- "ocean": {"label": "Ocean", "icon": "fa-water", "group": "nature"},- "forest": {"label": "Forest", "icon": "fa-tree", "group": "nature"},- "sunset": {"label": "Sunset", "icon": "fa-sun", "group": "nature"},- "rose": {"label": "Rose", "icon": "fa-heart", "group": "nature"},- "lavender": {"label": "Lavender", "icon": "fa-spa", "group": "nature"},- # Developer themes- "nord": {"label": "Nord", "icon": "fa-snowflake", "group": "dev"},- "dracula": {"label": "Dracula", "icon": "fa-ghost", "group": "dev"},- "monokai": {"label": "Monokai", "icon": "fa-code", "group": "dev"},- "solarized-dark": {- "label": "Solarized Dark",- "icon": "fa-adjust",- "group": "dev",- },- "solarized-light": {- "label": "Solarized Light",- "icon": "fa-circle",- "group": "dev",- },- "gruvbox-dark": {- "label": "Gruvbox Dark",- "icon": "fa-square",- "group": "dev",- },- "gruvbox-light": {- "label": "Gruvbox Light",- "icon": "fa-square-full",- "group": "dev",- },- "tokyo-night": {- "label": "Tokyo Night",- "icon": "fa-city",- "group": "dev",- },- "catppuccin": {"label": "Catppuccin", "icon": "fa-cat", "group": "dev"},- "one-dark": {"label": "One Dark", "icon": "fa-atom", "group": "dev"},- # Research-focused themes- "flexoki-dark": {- "label": "Flexoki Dark",- "icon": "fa-pen-nib",- "group": "research",- },- "flexoki-light": {- "label": "Flexoki Light",- "icon": "fa-feather",- "group": "research",- },- "rose-pine": {- "label": "Rosé Pine",- "icon": "fa-seedling",- "group": "research",- },- "rose-pine-dawn": {- "label": "Rosé Pine Dawn",- "icon": "fa-cloud-sun",- "group": "research",- },- "everforest-dark": {- "label": "Everforest Dark",- "icon": "fa-leaf",- "group": "research",- },- "everforest-light": {- "label": "Everforest Light",- "icon": "fa-seedling",- "group": "research",- },- "night-owl": {- "label": "Night Owl",- "icon": "fa-crow",- "group": "research",- },- "light-owl": {- "label": "Light Owl",- "icon": "fa-dove",- "group": "research",- },- "ayu-mirage": {- "label": "Ayu Mirage",- "icon": "fa-mountain-sun",- "group": "research",- },- "kanagawa": {- "label": "Kanagawa",- "icon": "fa-torii-gate",- "group": "research",- },- "palenight": {- "label": "Palenight",- "icon": "fa-moon",- "group": "research",- },- "vesper": {"label": "Vesper", "icon": "fa-fire", "group": "research"},- }-- # Group labels for dropdown- GROUPS = {- "core": "Core Themes",- "nature": "Nature",- "dev": "Developer Themes",- "research": "Research & Reading",- "system": "System",- }-- def __init__(self, app=None):- self.app = app- self._themes_cache = None+ """Flask integration helper for the theme system.++ This class provides backward-compatible Flask integration,+ delegating to the ThemeRegistry for actual theme management.+ """+ def __init__(self, app: Flask | None = None):+ """Initialize the theme helper.++ Args:+ app: Optional Flask application instance+ """+ self.app = appif app:self.init_app(app)- def init_app(self, app):- """Initialize the helper with Flask app"""+ def init_app(self, app: Flask) -> None:+ """Initialize the helper with a Flask application.++ Registers Jinja2 template globals for theme access:+ - get_themes(): Returns list of theme IDs+ - get_themes_json(): Returns JSON array of theme IDs+ - get_theme_metadata(): Returns JSON object with theme metadata++ Args:+ app: Flask application instance+ """self.app = app# Register template functions- app.jinja_env.globals["get_themes"] = self.get_themes- app.jinja_env.globals["get_themes_json"] = self.get_themes_json- app.jinja_env.globals["get_theme_metadata"] = (- self.get_theme_metadata_json- )-- def _get_css_path(self) -> Path:- """Get path to themes.css"""- static_dir = self.app.config.get("STATIC_DIR", "static")- return Path(static_dir) / "css" / "themes.css"-- @lru_cache(maxsize=1)- def _parse_themes_from_css(self) -> list[str]:- """Parse themes.css to extract theme names.-- Looks for patterns like [data-theme="theme-name"] {- Only matches root theme definitions (not element-specific like [data-theme="x"] a)- """- css_path = self._get_css_path()- themes = set()+ app.jinja_env.globals["get_themes"] = get_themes+ app.jinja_env.globals["get_themes_json"] = get_themes_json+ app.jinja_env.globals["get_theme_metadata"] = get_theme_metadata- if not css_path.exists():- logger.warning(f"themes.css not found at {css_path}")- return list(self.THEME_METADATA.keys())+ theme_count = len(theme_registry.themes)+ logger.info(f"Theme system initialized with {theme_count} themes")- try:- content = css_path.read_text()- # Match [data-theme="name"] { but not [data-theme="name"] element {- pattern = r'\[data-theme="([^"]+)"\]\s*\{'- matches = re.findall(pattern, content)- themes = set(matches)- logger.debug(f"Found {len(themes)} themes in CSS: {sorted(themes)}")- except Exception:- logger.exception("Error parsing themes.css")- return list(self.THEME_METADATA.keys())+ def get_themes(self) -> list[str]:+ """Get list of available theme names.- # Always include 'system' as it's a virtual theme- themes.add("system")+ Returns:+ Sorted list of theme ID strings+ """+ return theme_registry.get_theme_ids()- return sorted(themes)+ def clear_cache(self) -> None:+ """Clear the theme cache.- def get_themes(self) -> list[str]:- """Get list of available theme names (auto-detected from CSS)"""- if self._themes_cache is None:- self._themes_cache = self._parse_themes_from_css()- return self._themes_cache-- def get_themes_json(self) -> Markup:- """Get themes as JSON string for embedding in HTML"""- import json-- themes = self.get_themes()- return Markup(json.dumps(themes))-- def get_theme_metadata_json(self) -> Markup:- """Get full theme metadata as JSON for JavaScript"""- import json-- themes = self.get_themes()-- # Build metadata only for themes that exist in CSS- metadata = {}- for theme in themes:- if theme in self.THEME_METADATA:- metadata[theme] = self.THEME_METADATA[theme]- elif theme == "system":- metadata["system"] = {- "label": "System",- "icon": "fa-desktop",- "group": "system",- }- else:- # Auto-generate metadata for themes not in THEME_METADATA- # This allows new themes to work even without metadata- label = theme.replace("-", " ").title()- metadata[theme] = {- "label": label,- "icon": "fa-palette",- "group": "other",- }- logger.debug(f"Auto-generated metadata for theme: {theme}")-- return Markup(json.dumps(metadata))-- def clear_cache(self):- """Clear the themes cache (useful for development)"""- self._themes_cache = None- self._parse_themes_from_css.cache_clear()---# Singleton instance+ Useful for development or when theme files are modified.+ """+ theme_registry.clear_cache()+ logger.debug("Theme cache cleared")+++# Singleton instance for backward compatibilitytheme_helper = ThemeHelper()diff --git a/tests/theme_tests/test_theme_system.py b/tests/theme_tests/test_theme_system.pyindex 5a24788e17..b8008d557c 100644--- a/tests/theme_tests/test_theme_system.py+++ b/tests/theme_tests/test_theme_system.py@@ -63,23 +63,45 @@ REQUIRED_RGB_VARIANTS = []-# Auto-detect themes from CSS file (single source of truth)-def _parse_themes_from_css() -> list[str]:- """Parse themes.css to extract theme names."""- themes = set()- if CSS_DIR.exists():+# Auto-detect themes from theme registry (single source of truth)+def _get_themes_from_registry() -> list[str]:+ """Get theme names from the theme registry."""+ try:+ from local_deep_research.web.themes import theme_registry++ # Exclude 'system' virtual theme for CSS tests+ return sorted(+ [t for t in theme_registry.get_theme_ids() if t != "system"]+ )+ except ImportError:+ # Fallback to parsing CSS if registry not available+ themes = set()+ if CSS_DIR.exists():+ themes_css = CSS_DIR / "themes.css"+ if themes_css.exists():+ content = themes_css.read_text()+ pattern = r'\[data-theme="([^"]+)"\]\s*\{'+ matches = re.findall(pattern, content)+ themes = set(matches)+ return sorted(themes)+++def _generate_combined_css() -> str:+ """Generate combined CSS from theme registry for testing."""+ try:+ from local_deep_research.web.themes import theme_registry++ return theme_registry.get_combined_css()+ except ImportError:+ # Fallback to reading existing themes.cssthemes_css = CSS_DIR / "themes.css"if themes_css.exists():- content = themes_css.read_text()- # Match [data-theme="name"] { but not [data-theme="name"] element {- pattern = r'\[data-theme="([^"]+)"\]\s*\{'- matches = re.findall(pattern, content)- themes = set(matches)- return sorted(themes)+ return themes_css.read_text()+ return ""-# All themes are auto-detected from CSS-ALL_THEMES = _parse_themes_from_css()+# All themes are auto-detected from theme registry+ALL_THEMES = _get_themes_from_registry()# Hex color pattern (matches #fff, #ffffff, #FFFFFF)HEX_COLOR_PATTERN = re.compile(r"#[0-9a-fA-F]{3,8}\b")@@ -108,32 +130,49 @@ BRAND_COLOR_EXCEPTIONS = [class TestThemeDefinitions:- """Test that all themes are properly defined in themes.css."""+ """Test that all themes are properly defined."""@pytest.fixturedef themes_css_content(self):- """Load themes.css content."""- themes_css = CSS_DIR / "themes.css"- assert themes_css.exists(), f"themes.css not found at {themes_css}"- return themes_css.read_text()+ """Load or generate themes.css content."""+ # Use the generated combined CSS from theme registry+ content = _generate_combined_css()+ assert content, "Failed to load or generate themes CSS"+ return content- def test_themes_css_exists(self):- """Verify themes.css file exists."""- themes_css = CSS_DIR / "themes.css"- assert themes_css.exists(), "themes.css file is missing"+ def test_theme_registry_loads(self):+ """Verify theme registry loads themes correctly."""+ try:+ from local_deep_research.web.themes import theme_registry++ themes = theme_registry.themes+ assert len(themes) > 0, "No themes loaded from registry"+ assert "hashed" in themes, "Default 'hashed' theme not found"+ assert "system" in themes, "Virtual 'system' theme not found"+ except ImportError:+ pytest.skip("Theme registry not available")++ def test_themes_css_can_be_generated(self):+ """Verify combined CSS can be generated."""+ content = _generate_combined_css()+ assert content, "Failed to generate combined CSS"+ assert "[data-theme=" in content, (+ "Generated CSS has no theme definitions"+ )def test_all_themes_defined(self, themes_css_content):- """Check that all 20 themes are defined."""+ """Check that all themes are defined in the combined CSS."""for theme in ALL_THEMES:- if theme == "dark":- # Dark theme is defined in :root- assert ":root" in themes_css_content, (- "Default dark theme (:root) not found"- )+ if theme == "hashed":+ # Hashed theme is defined both in :root and as [data-theme="hashed"]+ assert (+ ":root" in themes_css_content+ or '[data-theme="hashed"]' in themes_css_content+ ), "Default hashed theme not found"else:theme_selector = f'[data-theme="{theme}"]'assert theme_selector in themes_css_content, (- f"Theme '{theme}' not defined in themes.css"+ f"Theme '{theme}' not defined in combined CSS")def test_required_variables_in_root(self, themes_css_content):@@ -163,7 +202,7 @@ class TestThemeDefinitions:f"RGB variant '{var}' not defined in :root")- @pytest.mark.parametrize("theme", ALL_THEMES[1:]) # Skip dark (uses :root)+ @pytest.mark.parametrize("theme", ALL_THEMES)def test_theme_has_required_variables(self, themes_css_content, theme):"""Check each theme defines all required variables."""theme_pattern = (@@ -178,7 +217,7 @@ class TestThemeDefinitions:f"Theme '{theme}' missing required variable '{var}'")- @pytest.mark.parametrize("theme", ALL_THEMES[1:])+ @pytest.mark.parametrize("theme", ALL_THEMES)def test_theme_has_rgb_variants(self, themes_css_content, theme):"""Check each theme defines RGB variants."""theme_pattern = (