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": "vesper-dark",
"name": "Vesper",
"description": "Vesper",
"version": "1.0.0",
"variant": "dark",
"tags": [ "dark", "palette" ]
},
"colors": {
"primary": {
"base": "#FFC799",
"hover": "#DBAC84",
"active": "#FFCFA8",
"foreground": "#101010",
"muted": "#FFC79980",
"emphasis": "#DBAC84"
},
"surface": {
"background": "#101010",
"foreground": "#FFFFFF",
"muted": "#141414",
"mutedForeground": "#A0A0A0",
"elevated": "#110f0f",
"elevatedForeground": "#FFFFFF",
"overlay": "#FFFFFF20",
"subtle": "#232323"
},
"interactive": {
"border": "#1C1C1C",
"borderHover": "#202020",
"borderFocus": "#383838",
"selection": "#b1adad33",
"selectionForeground": "#FFFFFF",
"focus": "#FFC799",
"focusRing": "#FFC79940",
"cursor": "#FFFFFF",
"hover": "#ffffff1c",
"active": "#ffffff33"
},
"status": {
"error": "#FF8080",
"errorForeground": "#101010",
"errorBackground": "#FF808020",
"errorBorder": "#FF808050",
"warning": "#FFC799",
"warningForeground": "#101010",
"warningBackground": "#FFC79920",
"warningBorder": "#FFC79950",
"success": "#99FFE4",
"successForeground": "#101010",
"successBackground": "#99FFE420",
"successBorder": "#99FFE450",
"info": "#FFC799",
"infoForeground": "#101010",
"infoBackground": "#FFC79920",
"infoBorder": "#FFC79950"
},
"syntax": {
"base": {
"background": "#141414",
"foreground": "#FFFFFF",
"comment": "#A0A0A0",
"keyword": "#FFC799",
"string": "#99FFE4",
"number": "#FF8080",
"function": "#FFC799",
"variable": "#FFFFFF",
"type": "#FFC799",
"operator": "#FF8080"
},
"tokens": {
"boolean": "#FFC799",
"class": "#FFC799",
"className": "#FFC799",
"commentDoc": "#8A8A8A",
"constant": "#A0A0A0",
"decorator": "#FFC799",
"enum": "#FFC799",
"exception": "#FF8080",
"functionCall": "#FFC799",
"interface": "#FFC799",
"jsxTag": "#FFC799",
"key": "#FFC799",
"keywordImport": "#FF8080",
"label": "#FF8080",
"macro": "#8B8B8B",
"method": "#99FFE4",
"module": "#FF8080",
"namespace": "#FFC799",
"parameter": "#FFFFFF",
"preprocessor": "#FF8080",
"punctuation": "#A0A0A0",
"regex": "#99FFE4",
"storageModifier": "#8B8B8B",
"stringEscape": "#FFFFFF",
"struct": "#FFC799",
"tag": "#FFC799",
"tagAttribute": "#FFC799",
"tagAttributeValue": "#99FFE4",
"typeParameter": "#FFC799",
"url": "#A0A0A0",
"variableGlobal": "#FFC799",
"variableLocal": "#0C0C0C",
"variableOther": "#99FFE4",
"variableProperty": "#A0A0A0"
},
"highlights": {
"diffAdded": "#99FFE4",
"diffAddedBackground": "#0D2818",
"diffModified": "#FFC799",
"diffModifiedBackground": "#141414",
"diffRemoved": "#FF8080",
"diffRemovedBackground": "#281A1A",
"lineNumber": "#282828",
"lineNumberActive": "#FFFFFF"
}
},
"markdown": {
"heading1": "#FFFFFF",
"heading2": "#FFFFFF",
"heading3": "#FFFFFF",
"heading4": "#FFFFFF",
"link": "#A0A0A0",
"linkHover": "#FFC799",
"inlineCode": "#A0A0A0",
"inlineCodeBackground": "#141414",
"blockquote": "#FFFFFF",
"blockquoteBorder": "#1C1C1C",
"listMarker": "#FFFFFF99"
},
"chat": {
"userMessage": "#FFFFFF",
"userMessageBackground": "#232323",
"assistantMessage": "#FFFFFF",
"assistantMessageBackground": "#101010",
"timestamp": "#A0A0A0",
"divider": "#1C1C1C"
},
"tools": {
"background": "#14141480",
"border": "#48474780",
"headerHover": "#080808",
"icon": "#A0A0A0",
"title": "#FFFFFF",
"description": "#A0A0A0",
"edit": {
"added": "#99FFE4",
"addedBackground": "#99FFE425",
"removed": "#FF8080",
"removedBackground": "#FF808025",
"lineNumber": "#615f5f"
}
}
},
"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"
}
}
}