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:
committed by
GitHub
parent
5bb2c56bc0
commit
ddedc02687
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"metadata": {
|
||||
"id": "mono-plus-light",
|
||||
"name": "Mono Plus",
|
||||
"description": "A pure monochromatic theme - light variant with slight colors added",
|
||||
"version": "1.0.0",
|
||||
"variant": "light",
|
||||
"tags": ["light", "monochrome", "minimal"]
|
||||
},
|
||||
"colors": {
|
||||
"primary": {
|
||||
"base": "#4a6a9e",
|
||||
"hover": "#1A1A1A",
|
||||
"active": "#333333",
|
||||
"foreground": "#FFFFFF",
|
||||
"muted": "#00000080",
|
||||
"emphasis": "#000000"
|
||||
},
|
||||
"surface": {
|
||||
"background": "#FFFFFF",
|
||||
"foreground": "#1A1A1A",
|
||||
"muted": "#F5F5F5",
|
||||
"mutedForeground": "#666666",
|
||||
"elevated": "#FAFAFA",
|
||||
"elevatedForeground": "#1A1A1A",
|
||||
"overlay": "#00000020",
|
||||
"subtle": "#F0F0F0"
|
||||
},
|
||||
"interactive": {
|
||||
"border": "#D9D9D9",
|
||||
"borderHover": "#B3B3B3",
|
||||
"borderFocus": "#000000",
|
||||
"selection": "#00000015",
|
||||
"selectionForeground": "#1A1A1A",
|
||||
"focus": "#000000",
|
||||
"focusRing": "#00000040",
|
||||
"cursor": "#1A1A1A",
|
||||
"hover": "#00000010",
|
||||
"active": "#00000015"
|
||||
},
|
||||
"status": {
|
||||
"error": "#8a5a5a",
|
||||
"errorForeground": "#fafafa",
|
||||
"errorBackground": "#8a5a5a18",
|
||||
"errorBorder": "#8a5a5a40",
|
||||
"warning": "#8a7a5a",
|
||||
"warningForeground": "#fafafa",
|
||||
"warningBackground": "#8a7a5a18",
|
||||
"warningBorder": "#8a7a5a40",
|
||||
"success": "#5a7a5a",
|
||||
"successForeground": "#fafafa",
|
||||
"successBackground": "#5a7a5a18",
|
||||
"successBorder": "#5a7a5a40",
|
||||
"info": "#5a6a8a",
|
||||
"infoForeground": "#fafafa",
|
||||
"infoBackground": "#5a6a8a18",
|
||||
"infoBorder": "#5a6a8a40"
|
||||
},
|
||||
"syntax": {
|
||||
"base": {
|
||||
"background": "#f5f5f5",
|
||||
"foreground": "#2a2a2a",
|
||||
"comment": "#8c8c8c",
|
||||
"keyword": "#6a5a4a",
|
||||
"string": "#4a6a7a",
|
||||
"number": "#7a5a4a",
|
||||
"function": "#4a6a9e",
|
||||
"variable": "#2a2a2a",
|
||||
"type": "#6a5040",
|
||||
"operator": "#6a5a4a"
|
||||
},
|
||||
"tokens": {
|
||||
"commentDoc": "#8c8c8c",
|
||||
"stringEscape": "#4a6a7a",
|
||||
"keywordImport": "#6a5a4a",
|
||||
"storageModifier": "#6a5a4a",
|
||||
"functionCall": "#4a6a9e",
|
||||
"method": "#4a6a9e",
|
||||
"variableProperty": "#4a6a4a",
|
||||
"variableOther": "#2a2a2a",
|
||||
"class": "#6a5040",
|
||||
"className": "#6a5040",
|
||||
"interface": "#6a5040",
|
||||
"tag": "#4a6a9e",
|
||||
"boolean": "#7a5a4a",
|
||||
"url": "#4a6a7a",
|
||||
"key": "#4a6a4a"
|
||||
},
|
||||
"highlights": {
|
||||
"diffAdded": "#5a7a5a",
|
||||
"diffAddedBackground": "#5a7a5a18",
|
||||
"diffRemoved": "#8a5a5a",
|
||||
"diffRemovedBackground": "#8a5a5a18",
|
||||
"lineNumber": "#b0b0b0",
|
||||
"lineNumberActive": "#2a2a2a"
|
||||
}
|
||||
},
|
||||
"markdown": {
|
||||
"heading1": "#000000",
|
||||
"heading2": "#0D0D0D",
|
||||
"heading3": "#1A1A1A",
|
||||
"heading4": "#262626",
|
||||
"link": "#333333",
|
||||
"linkHover": "#4a6a9e",
|
||||
"inlineCode": "#4a6a9e",
|
||||
"inlineCodeBackground": "#f1efef",
|
||||
"blockquote": "#808080",
|
||||
"blockquoteBorder": "#D9D9D9",
|
||||
"listMarker": "#66666699"
|
||||
},
|
||||
"chat": {
|
||||
"userMessage": "#1A1A1A",
|
||||
"userMessageBackground": "#E5E5E5",
|
||||
"assistantMessage": "#1A1A1A",
|
||||
"assistantMessageBackground": "#FFFFFF",
|
||||
"timestamp": "#808080",
|
||||
"divider": "#D9D9D9"
|
||||
},
|
||||
"tools": {
|
||||
"background": "#F5F5F550",
|
||||
"border": "#B3B3B380",
|
||||
"headerHover": "#D9D9D9",
|
||||
"icon": "#666666",
|
||||
"title": "#1A1A1A",
|
||||
"description": "#808080",
|
||||
"edit": {
|
||||
"added": "#5a7a5a",
|
||||
"addedBackground": "#5a7a5a18",
|
||||
"removed": "#8a5a5a",
|
||||
"removedBackground": "#8a5a5a18",
|
||||
"lineNumber": "#d0d0d0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user