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": "monokai-dark",
|
||||
"name": "Monokai",
|
||||
"description": "Monokai",
|
||||
"version": "1.0.0",
|
||||
"variant": "dark",
|
||||
"tags": [ "dark", "palette" ]
|
||||
},
|
||||
"colors": {
|
||||
"primary": {
|
||||
"base": "#AE81FF",
|
||||
"hover": "#9973DD",
|
||||
"active": "#BA94FF",
|
||||
"foreground": "#23241E",
|
||||
"muted": "#AE81FF80",
|
||||
"emphasis": "#9973DD"
|
||||
},
|
||||
"surface": {
|
||||
"background": "#23241E",
|
||||
"foreground": "#F8F8F2",
|
||||
"muted": "#282a20",
|
||||
"mutedForeground": "#C5C5C0",
|
||||
"elevated": "#21221a",
|
||||
"elevatedForeground": "#F8F8F2",
|
||||
"overlay": "#FFFFFF20",
|
||||
"subtle": "#36372a"
|
||||
},
|
||||
"interactive": {
|
||||
"border": "#343528",
|
||||
"borderHover": "#393A2D",
|
||||
"borderFocus": "#555741",
|
||||
"selection": "#434d3cfe",
|
||||
"selectionForeground": "#FFFFFF",
|
||||
"focus": "#AE81FF",
|
||||
"focusRing": "#AE81FF40",
|
||||
"cursor": "#FFFFFF",
|
||||
"hover": "#36372a",
|
||||
"active": "#36382e"
|
||||
},
|
||||
"status": {
|
||||
"error": "#F92672",
|
||||
"errorForeground": "#23241E",
|
||||
"errorBackground": "#F9267220",
|
||||
"errorBorder": "#F9267250",
|
||||
"warning": "#FD971F",
|
||||
"warningForeground": "#23241E",
|
||||
"warningBackground": "#FD971F20",
|
||||
"warningBorder": "#FD971F50",
|
||||
"success": "#A6E22E",
|
||||
"successForeground": "#23241E",
|
||||
"successBackground": "#A6E22E20",
|
||||
"successBorder": "#A6E22E50",
|
||||
"info": "#66D9EF",
|
||||
"infoForeground": "#23241E",
|
||||
"infoBackground": "#66D9EF20",
|
||||
"infoBorder": "#66D9EF50"
|
||||
},
|
||||
"syntax": {
|
||||
"base": {
|
||||
"background": "#27281F",
|
||||
"foreground": "#F8F8F2",
|
||||
"comment": "#C5C5C0",
|
||||
"keyword": "#AE81FF",
|
||||
"string": "#A6E22E",
|
||||
"number": "#F92672",
|
||||
"function": "#AE81FF",
|
||||
"variable": "#F8F8F2",
|
||||
"type": "#FD971F",
|
||||
"operator": "#F92672"
|
||||
},
|
||||
"tokens": {
|
||||
"boolean": "#FD971F",
|
||||
"class": "#AE81FF",
|
||||
"className": "#AE81FF",
|
||||
"commentDoc": "#ADADA8",
|
||||
"constant": "#66D9EF",
|
||||
"decorator": "#FD971F",
|
||||
"enum": "#AE81FF",
|
||||
"exception": "#F92672",
|
||||
"functionCall": "#AE81FF",
|
||||
"interface": "#FD971F",
|
||||
"jsxTag": "#AE81FF",
|
||||
"key": "#AE81FF",
|
||||
"keywordImport": "#F92672",
|
||||
"label": "#F92672",
|
||||
"macro": "#66D9EF",
|
||||
"method": "#A6E22E",
|
||||
"module": "#F92672",
|
||||
"namespace": "#FD971F",
|
||||
"parameter": "#F8F8F2",
|
||||
"preprocessor": "#F92672",
|
||||
"punctuation": "#C5C5C0",
|
||||
"regex": "#A6E22E",
|
||||
"storageModifier": "#66D9EF",
|
||||
"stringEscape": "#FFFFFF",
|
||||
"struct": "#AE81FF",
|
||||
"tag": "#AE81FF",
|
||||
"tagAttribute": "#FD971F",
|
||||
"tagAttributeValue": "#A6E22E",
|
||||
"typeParameter": "#FD971F",
|
||||
"url": "#66D9EF",
|
||||
"variableGlobal": "#AE81FF",
|
||||
"variableLocal": "#25261F",
|
||||
"variableOther": "#A6E22E",
|
||||
"variableProperty": "#66D9EF"
|
||||
},
|
||||
"highlights": {
|
||||
"diffAdded": "#A6E22E",
|
||||
"diffAddedBackground": "#1E2A1D",
|
||||
"diffModified": "#66D9EF",
|
||||
"diffModifiedBackground": "#2F2F24",
|
||||
"diffRemoved": "#F92672",
|
||||
"diffRemovedBackground": "#301C24",
|
||||
"lineNumber": "#454639",
|
||||
"lineNumberActive": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
"markdown": {
|
||||
"heading1": "#F8F8F2",
|
||||
"heading2": "#F8F8F2",
|
||||
"heading3": "#F8F8F2",
|
||||
"heading4": "#F8F8F2",
|
||||
"link": "#66D9EF",
|
||||
"linkHover": "#AE81FF",
|
||||
"inlineCode": "#A6E22E",
|
||||
"inlineCodeBackground": "#27281F",
|
||||
"blockquote": "#FD971F",
|
||||
"blockquoteBorder": "#343528",
|
||||
"listMarker": "#AE81FF99"
|
||||
},
|
||||
"chat": {
|
||||
"userMessage": "#F8F8F2",
|
||||
"userMessageBackground": "#36372a",
|
||||
"assistantMessage": "#F8F8F2",
|
||||
"assistantMessageBackground": "#23241E",
|
||||
"timestamp": "#C5C5C0",
|
||||
"divider": "#343528"
|
||||
},
|
||||
"tools": {
|
||||
"background": "#27281F80",
|
||||
"border": "#4d4f3c80",
|
||||
"headerHover": "#292A23",
|
||||
"icon": "#C5C5C0",
|
||||
"title": "#F8F8F2",
|
||||
"description": "#C5C5C0",
|
||||
"edit": {
|
||||
"added": "#A6E22E",
|
||||
"addedBackground": "#A6E22E25",
|
||||
"removed": "#bd215a",
|
||||
"removedBackground": "#F9267225",
|
||||
"lineNumber": "#505142"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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