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,176 @@
|
||||
{
|
||||
"metadata": {
|
||||
"id": "kanagawa-dark",
|
||||
"name": "Kanagawa",
|
||||
"description": "A color scheme inspired by Japanese art and ink painting - dark variant",
|
||||
"version": "1.0.0",
|
||||
"variant": "dark",
|
||||
"tags": ["dark", "japanese", "ink", "elegant"]
|
||||
},
|
||||
"colors": {
|
||||
"primary": {
|
||||
"base": "#7FB4CA",
|
||||
"hover": "#9DC5E0",
|
||||
"active": "#658594",
|
||||
"foreground": "#1F1F28",
|
||||
"muted": "#7FB4CA80",
|
||||
"emphasis": "#7E9CD8"
|
||||
},
|
||||
"surface": {
|
||||
"background": "#1F1F28",
|
||||
"foreground": "#DCD7BA",
|
||||
"muted": "#23232d",
|
||||
"mutedForeground": "#807f78",
|
||||
"elevated": "#2A2A37",
|
||||
"elevatedForeground": "#DCD7BA",
|
||||
"overlay": "#16161DCC",
|
||||
"subtle": "#2f2f3d"
|
||||
},
|
||||
"interactive": {
|
||||
"border": "#363646",
|
||||
"borderHover": "#54546D",
|
||||
"borderFocus": "#7FB4CA",
|
||||
"selection": "#729fb333",
|
||||
"selectionForeground": "#DCD7BA",
|
||||
"focus": "#7FB4CA",
|
||||
"focusRing": "#7FB4CA50",
|
||||
"cursor": "#DCD7BA",
|
||||
"hover": "#363646",
|
||||
"active": "#54546D"
|
||||
},
|
||||
"status": {
|
||||
"error": "#E82424",
|
||||
"errorForeground": "#DCD7BA",
|
||||
"errorBackground": "#E8242420",
|
||||
"errorBorder": "#E8242450",
|
||||
"warning": "#FF9E3B",
|
||||
"warningForeground": "#1F1F28",
|
||||
"warningBackground": "#FF9E3B20",
|
||||
"warningBorder": "#FF9E3B50",
|
||||
"success": "#98BB6C",
|
||||
"successForeground": "#1F1F28",
|
||||
"successBackground": "#98BB6C20",
|
||||
"successBorder": "#98BB6C50",
|
||||
"info": "#7E9CD8",
|
||||
"infoForeground": "#1F1F28",
|
||||
"infoBackground": "#7E9CD820",
|
||||
"infoBorder": "#7E9CD850"
|
||||
},
|
||||
"syntax": {
|
||||
"base": {
|
||||
"background": "#16161D",
|
||||
"foreground": "#DCD7BA",
|
||||
"comment": "#54546D",
|
||||
"keyword": "#7E9CD8",
|
||||
"string": "#98BB6C",
|
||||
"number": "#FF9E3B",
|
||||
"function": "#E6C384",
|
||||
"variable": "#DCD7BA",
|
||||
"type": "#C8C093",
|
||||
"operator": "#C34043"
|
||||
},
|
||||
"tokens": {
|
||||
"commentDoc": "#727169",
|
||||
"stringEscape": "#DCD7BA",
|
||||
"keywordImport": "#957FB8",
|
||||
"storageModifier": "#7E9CD8",
|
||||
"functionCall": "#E6C384",
|
||||
"method": "#76946A",
|
||||
"variableProperty": "#7E9CD8",
|
||||
"variableOther": "#76946A",
|
||||
"variableGlobal": "#D27E99",
|
||||
"variableLocal": "#2A2A37",
|
||||
"parameter": "#DCD7BA",
|
||||
"constant": "#DCD7BA",
|
||||
"class": "#E6C384",
|
||||
"className": "#E6C384",
|
||||
"interface": "#C8C093",
|
||||
"struct": "#E6C384",
|
||||
"enum": "#E6C384",
|
||||
"typeParameter": "#E6C384",
|
||||
"namespace": "#C8C093",
|
||||
"module": "#C34043",
|
||||
"tag": "#7E9CD8",
|
||||
"jsxTag": "#D27E99",
|
||||
"tagAttribute": "#C8C093",
|
||||
"tagAttributeValue": "#98BB6C",
|
||||
"boolean": "#C8C093",
|
||||
"decorator": "#C8C093",
|
||||
"label": "#D27E99",
|
||||
"punctuation": "#54546D",
|
||||
"macro": "#7E9CD8",
|
||||
"preprocessor": "#D27E99",
|
||||
"regex": "#98BB6C",
|
||||
"url": "#7E9CD8",
|
||||
"key": "#E6C384",
|
||||
"exception": "#D27E99"
|
||||
},
|
||||
"highlights": {
|
||||
"diffAdded": "#98BB6C",
|
||||
"diffAddedBackground": "#76946A20",
|
||||
"diffRemoved": "#C34043",
|
||||
"diffRemovedBackground": "#E8242420",
|
||||
"diffModified": "#7E9CD8",
|
||||
"diffModifiedBackground": "#7E9CD820",
|
||||
"lineNumber": "#363646",
|
||||
"lineNumberActive": "#DCD7BA"
|
||||
}
|
||||
},
|
||||
"markdown": {
|
||||
"heading1": "#DCD7BA",
|
||||
"heading2": "#DCD7BA",
|
||||
"heading3": "#DCD7BA",
|
||||
"heading4": "#DCD7BA",
|
||||
"link": "#7FB4CA",
|
||||
"linkHover": "#7E9CD8",
|
||||
"inlineCode": "#98BB6C",
|
||||
"inlineCodeBackground": "#16161D",
|
||||
"blockquote": "#54546D",
|
||||
"blockquoteBorder": "#363646",
|
||||
"listMarker": "#FF9E3B99"
|
||||
},
|
||||
"chat": {
|
||||
"userMessage": "#DCD7BA",
|
||||
"userMessageBackground": "#2A2A37",
|
||||
"assistantMessage": "#DCD7BA",
|
||||
"assistantMessageBackground": "#2f2f3d",
|
||||
"timestamp": "#54546D",
|
||||
"divider": "#363646"
|
||||
},
|
||||
"tools": {
|
||||
"background": "#16161D50",
|
||||
"border": "#4a4a5f80",
|
||||
"headerHover": "#36364650",
|
||||
"icon": "#afad9c",
|
||||
"title": "#DCD7BA",
|
||||
"description": "#5A595B",
|
||||
"edit": {
|
||||
"added": "#98BB6C",
|
||||
"addedBackground": "#98BB6C25",
|
||||
"removed": "#C34043",
|
||||
"removedBackground": "#C3404325",
|
||||
"lineNumber": "#56566d"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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