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": "gruvbox-dark",
|
||||
"name": "Gruvbox",
|
||||
"description": "Gruvbox",
|
||||
"version": "1.0.0",
|
||||
"variant": "dark",
|
||||
"tags": [ "dark", "palette" ]
|
||||
},
|
||||
"colors": {
|
||||
"primary": {
|
||||
"base": "#83A598",
|
||||
"hover": "#759287",
|
||||
"active": "#95B09F",
|
||||
"foreground": "#282828",
|
||||
"muted": "#83A59880",
|
||||
"emphasis": "#759287"
|
||||
},
|
||||
"surface": {
|
||||
"background": "#282828",
|
||||
"foreground": "#EBDBB2",
|
||||
"muted": "#32302F",
|
||||
"mutedForeground": "#A89984",
|
||||
"elevated": "#25292b",
|
||||
"elevatedForeground": "#EBDBB2",
|
||||
"overlay": "#FBF1C720",
|
||||
"subtle": "#3e3c3a"
|
||||
},
|
||||
"interactive": {
|
||||
"border": "#504945",
|
||||
"borderHover": "#5A524B",
|
||||
"borderFocus": "#7C6F64",
|
||||
"selection": "#5a5647db",
|
||||
"selectionForeground": "#FBF1C7",
|
||||
"focus": "#83A598",
|
||||
"focusRing": "#83A59840",
|
||||
"cursor": "#FBF1C7",
|
||||
"hover": "#5a5647d9",
|
||||
"active": "#5a5647ec"
|
||||
},
|
||||
"status": {
|
||||
"error": "#FB4934",
|
||||
"errorForeground": "#282828",
|
||||
"errorBackground": "#FB493420",
|
||||
"errorBorder": "#FB493450",
|
||||
"warning": "#FABD2F",
|
||||
"warningForeground": "#282828",
|
||||
"warningBackground": "#FABD2F20",
|
||||
"warningBorder": "#FABD2F50",
|
||||
"success": "#B8BB26",
|
||||
"successForeground": "#282828",
|
||||
"successBackground": "#B8BB2620",
|
||||
"successBorder": "#B8BB2650",
|
||||
"info": "#D3869B",
|
||||
"infoForeground": "#282828",
|
||||
"infoBackground": "#D3869B20",
|
||||
"infoBorder": "#D3869B50"
|
||||
},
|
||||
"syntax": {
|
||||
"base": {
|
||||
"background": "#32302F",
|
||||
"foreground": "#EBDBB2",
|
||||
"comment": "#A89984",
|
||||
"keyword": "#83A598",
|
||||
"string": "#B8BB26",
|
||||
"number": "#FB4934",
|
||||
"function": "#83A598",
|
||||
"variable": "#EBDBB2",
|
||||
"type": "#FABD2F",
|
||||
"operator": "#FB4934"
|
||||
},
|
||||
"tokens": {
|
||||
"boolean": "#FABD2F",
|
||||
"class": "#83A598",
|
||||
"className": "#83A598",
|
||||
"commentDoc": "#958876",
|
||||
"constant": "#D3869B",
|
||||
"decorator": "#FABD2F",
|
||||
"enum": "#83A598",
|
||||
"exception": "#FB4934",
|
||||
"functionCall": "#83A598",
|
||||
"interface": "#FABD2F",
|
||||
"jsxTag": "#83A598",
|
||||
"key": "#83A598",
|
||||
"keywordImport": "#FB4934",
|
||||
"label": "#FB4934",
|
||||
"macro": "#8EC07C",
|
||||
"method": "#B8BB26",
|
||||
"module": "#FB4934",
|
||||
"namespace": "#FABD2F",
|
||||
"parameter": "#EBDBB2",
|
||||
"preprocessor": "#FB4934",
|
||||
"punctuation": "#A89984",
|
||||
"regex": "#B8BB26",
|
||||
"storageModifier": "#8EC07C",
|
||||
"stringEscape": "#FBF1C7",
|
||||
"struct": "#83A598",
|
||||
"tag": "#83A598",
|
||||
"tagAttribute": "#FABD2F",
|
||||
"tagAttributeValue": "#B8BB26",
|
||||
"typeParameter": "#FABD2F",
|
||||
"url": "#8EC07C",
|
||||
"variableGlobal": "#83A598",
|
||||
"variableLocal": "#1D2021",
|
||||
"variableOther": "#B8BB26",
|
||||
"variableProperty": "#D3869B"
|
||||
},
|
||||
"highlights": {
|
||||
"diffAdded": "#B8BB26",
|
||||
"diffAddedBackground": "#2A3325",
|
||||
"diffModified": "#D3869B",
|
||||
"diffModifiedBackground": "#32302F",
|
||||
"diffRemoved": "#FB4934",
|
||||
"diffRemovedBackground": "#3C2222",
|
||||
"lineNumber": "#70665D",
|
||||
"lineNumberActive": "#FBF1C7"
|
||||
}
|
||||
},
|
||||
"markdown": {
|
||||
"heading1": "#EBDBB2",
|
||||
"heading2": "#EBDBB2",
|
||||
"heading3": "#EBDBB2",
|
||||
"heading4": "#EBDBB2",
|
||||
"link": "#8EC07C",
|
||||
"linkHover": "#83A598",
|
||||
"inlineCode": "#B8BB26",
|
||||
"inlineCodeBackground": "#32302F",
|
||||
"blockquote": "#928374",
|
||||
"blockquoteBorder": "#504945",
|
||||
"listMarker": "#83A59899"
|
||||
},
|
||||
"chat": {
|
||||
"userMessage": "#EBDBB2",
|
||||
"userMessageBackground": "#3e3c3a",
|
||||
"assistantMessage": "#EBDBB2",
|
||||
"assistantMessageBackground": "#282828",
|
||||
"timestamp": "#A89984",
|
||||
"divider": "#504945"
|
||||
},
|
||||
"tools": {
|
||||
"background": "#32302F80",
|
||||
"border": "#6e645e80",
|
||||
"headerHover": "#141617",
|
||||
"icon": "#A89984",
|
||||
"title": "#EBDBB2",
|
||||
"description": "#A89984",
|
||||
"edit": {
|
||||
"added": "#B8BB26",
|
||||
"addedBackground": "#B8BB2625",
|
||||
"removed": "#FB4934",
|
||||
"removedBackground": "#FB493425",
|
||||
"lineNumber": "#70665D"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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