feat: introduced a token-based theming system across the UI

* feat: added themes system

* feat: smart sidebar auto-hide for files/diff tabs + lower files sidebar threshold

* feat: added Checkbox component and update theming

- Add reusable Checkbox component for toggles across UI
- Replace several inputs with Checkbox in settings and commands panels
- Add DiffIcon and apply surface/border theming to key UI areas

* feat: Add convert-vscode-theme.cjs to convert VS Code themes to OpenChamber format

* refactor: remove unused permission logic from ChatInput

- Remove unused permission rules parsing logic from ChatInput
- Memoize renderTheme in DiffWorkerProvider to avoid unnecessary recalculations
- Remove forceOpaque helper in vscode theme adapter

* fix: guard VSCode theme loading in MarkdownRenderer

* feat: add custom user themes loading and reload

- Load user themes from ~/.config/openchamber/themes at runtime
- Expose /api/config/themes to fetch custom themes
- Allow theme reloading from Settings → Theme → Reload themes in the UI
This commit is contained in:
Bohdan Triapitsyn
2026-02-01 18:29:34 +02:00
committed by GitHub
parent 5bb2c56bc0
commit ddedc02687
147 changed files with 9853 additions and 2435 deletions
@@ -0,0 +1,176 @@
{
"metadata": {
"id": "dracula-dark",
"name": "Dracula",
"description": "Dracula",
"version": "1.0.0",
"variant": "dark",
"tags": [ "dark", "palette" ]
},
"colors": {
"primary": {
"base": "#BD93F9",
"hover": "#A480D8",
"active": "#C7A3FA",
"foreground": "#14151F",
"muted": "#BD93F980",
"emphasis": "#A480D8"
},
"surface": {
"background": "#14151F",
"foreground": "#F8F8F2",
"muted": "#181926",
"mutedForeground": "#B6B9E4",
"elevated": "#161722",
"elevatedForeground": "#F8F8F2",
"overlay": "#FFFFFF20",
"subtle": "#222436"
},
"interactive": {
"border": "#2D2F3C",
"borderHover": "#303244",
"borderFocus": "#4A4D6D",
"selection": "#30334b",
"selectionForeground": "#FFFFFF",
"focus": "#BD93F9",
"focusRing": "#BD93F940",
"cursor": "#FFFFFF",
"hover": "#30334ba3",
"active": "#30334b"
},
"status": {
"error": "#FF5555",
"errorForeground": "#14151F",
"errorBackground": "#FF555520",
"errorBorder": "#FF555550",
"warning": "#FFB86C",
"warningForeground": "#14151F",
"warningBackground": "#FFB86C20",
"warningBorder": "#FFB86C50",
"success": "#50FA7B",
"successForeground": "#14151F",
"successBackground": "#50FA7B20",
"successBorder": "#50FA7B50",
"info": "#8BE9FD",
"infoForeground": "#14151F",
"infoBackground": "#8BE9FD20",
"infoBorder": "#8BE9FD50"
},
"syntax": {
"base": {
"background": "#181926",
"foreground": "#F8F8F2",
"comment": "#B6B9E4",
"keyword": "#BD93F9",
"string": "#50FA7B",
"number": "#FF79C6",
"function": "#BD93F9",
"variable": "#F8F8F2",
"type": "#FFB86C",
"operator": "#FF79C6"
},
"tokens": {
"boolean": "#FFB86C",
"class": "#BD93F9",
"className": "#BD93F9",
"commentDoc": "#9EA0C6",
"constant": "#8BE9FD",
"decorator": "#FFB86C",
"enum": "#BD93F9",
"exception": "#FF79C6",
"functionCall": "#BD93F9",
"interface": "#FFB86C",
"jsxTag": "#BD93F9",
"key": "#BD93F9",
"keywordImport": "#FF79C6",
"label": "#FF79C6",
"macro": "#8BE9FD",
"method": "#50FA7B",
"module": "#FF79C6",
"namespace": "#FFB86C",
"parameter": "#F8F8F2",
"preprocessor": "#FF79C6",
"punctuation": "#B6B9E4",
"regex": "#50FA7B",
"storageModifier": "#8BE9FD",
"stringEscape": "#FFFFFF",
"struct": "#BD93F9",
"tag": "#BD93F9",
"tagAttribute": "#FFB86C",
"tagAttributeValue": "#50FA7B",
"typeParameter": "#FFB86C",
"url": "#8BE9FD",
"variableGlobal": "#BD93F9",
"variableLocal": "#161722",
"variableOther": "#50FA7B",
"variableProperty": "#8BE9FD"
},
"highlights": {
"diffAdded": "#50FA7B",
"diffAddedBackground": "#1F2A2F",
"diffModified": "#8BE9FD",
"diffModifiedBackground": "#24253A",
"diffRemoved": "#FF5555",
"diffRemovedBackground": "#2D1F27",
"lineNumber": "#3B3D55",
"lineNumberActive": "#FFFFFF"
}
},
"markdown": {
"heading1": "#F8F8F2",
"heading2": "#F8F8F2",
"heading3": "#F8F8F2",
"heading4": "#F8F8F2",
"link": "#8BE9FD",
"linkHover": "#BD93F9",
"inlineCode": "#4aeb72",
"inlineCodeBackground": "#202132",
"blockquote": "#FFB86C",
"blockquoteBorder": "#2D2F3C",
"listMarker": "#BD93F999"
},
"chat": {
"userMessage": "#F8F8F2",
"userMessageBackground": "#222436",
"assistantMessage": "#F8F8F2",
"assistantMessageBackground": "#14151F",
"timestamp": "#B6B9E4",
"divider": "#2D2F3C"
},
"tools": {
"background": "#18192680",
"border": "#494c6180",
"headerHover": "#191A26",
"icon": "#B6B9E4",
"title": "#F8F8F2",
"description": "#B6B9E4",
"edit": {
"added": "#50FA7B",
"addedBackground": "#50FA7B25",
"removed": "#FF5555",
"removedBackground": "#FF555525",
"lineNumber": "#3B3D55"
}
}
},
"config": {
"fonts": {
"sans": "\"IBM Plex Mono\", monospace",
"mono": "\"IBM Plex Mono\", monospace",
"heading": "\"IBM Plex Mono\", monospace"
},
"radius": {
"none": "0",
"sm": "0.125rem",
"md": "0.375rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"transitions": {
"fast": "150ms ease",
"normal": "250ms ease",
"slow": "350ms ease"
}
}
}