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": "carbonfox-dark",
|
||||
"name": "Carbonfox",
|
||||
"description": "Carbonfox",
|
||||
"version": "1.0.0",
|
||||
"variant": "dark",
|
||||
"tags": [ "dark", "palette" ]
|
||||
},
|
||||
"colors": {
|
||||
"primary": {
|
||||
"base": "#33B1FF",
|
||||
"hover": "#2F9ADC",
|
||||
"active": "#52BDFF",
|
||||
"foreground": "#161616",
|
||||
"muted": "#33B1FF80",
|
||||
"emphasis": "#2F9ADC"
|
||||
},
|
||||
"surface": {
|
||||
"background": "#161616",
|
||||
"foreground": "#F2F4F8",
|
||||
"muted": "#222222",
|
||||
"mutedForeground": "#b4b3b3",
|
||||
"elevated": "#222222",
|
||||
"elevatedForeground": "#F2F4F8",
|
||||
"overlay": "#FFFFFF20",
|
||||
"subtle": "#292828"
|
||||
},
|
||||
"interactive": {
|
||||
"border": "#393939",
|
||||
"borderHover": "#4C4C4C",
|
||||
"borderFocus": "#4589FF",
|
||||
"selection": "#ffffff20",
|
||||
"selectionForeground": "#FFFFFF",
|
||||
"focus": "#4589FF",
|
||||
"focusRing": "#4589FF40",
|
||||
"cursor": "#FFFFFF",
|
||||
"hover": "#ffffff12",
|
||||
"active": "#ffffff12"
|
||||
},
|
||||
"status": {
|
||||
"error": "#FF8389",
|
||||
"errorForeground": "#161616",
|
||||
"errorBackground": "#FF838920",
|
||||
"errorBorder": "#FF838950",
|
||||
"warning": "#F1C21B",
|
||||
"warningForeground": "#161616",
|
||||
"warningBackground": "#F1C21B20",
|
||||
"warningBorder": "#F1C21B50",
|
||||
"success": "#42BE65",
|
||||
"successForeground": "#161616",
|
||||
"successBackground": "#42BE6520",
|
||||
"successBorder": "#42BE6550",
|
||||
"info": "#78A9FF",
|
||||
"infoForeground": "#161616",
|
||||
"infoBackground": "#78A9FF20",
|
||||
"infoBorder": "#78A9FF50"
|
||||
},
|
||||
"syntax": {
|
||||
"base": {
|
||||
"background": "#262626",
|
||||
"foreground": "#F2F4F8",
|
||||
"comment": "#8D8D8D",
|
||||
"keyword": "#78A9FF",
|
||||
"string": "#42BE65",
|
||||
"number": "#FF8389",
|
||||
"function": "#78A9FF",
|
||||
"variable": "#F2F4F8",
|
||||
"type": "#08BDBA",
|
||||
"operator": "#FF8389"
|
||||
},
|
||||
"tokens": {
|
||||
"boolean": "#08BDBA",
|
||||
"class": "#78A9FF",
|
||||
"className": "#78A9FF",
|
||||
"commentDoc": "#7B7B7B",
|
||||
"constant": "#BE95FF",
|
||||
"decorator": "#08BDBA",
|
||||
"enum": "#78A9FF",
|
||||
"exception": "#FF8389",
|
||||
"functionCall": "#78A9FF",
|
||||
"interface": "#08BDBA",
|
||||
"jsxTag": "#78A9FF",
|
||||
"key": "#78A9FF",
|
||||
"keywordImport": "#FF8389",
|
||||
"label": "#FF8389",
|
||||
"macro": "#78A9FF",
|
||||
"method": "#42BE65",
|
||||
"module": "#FF8389",
|
||||
"namespace": "#08BDBA",
|
||||
"parameter": "#F2F4F8",
|
||||
"preprocessor": "#FF8389",
|
||||
"punctuation": "#8D8D8D",
|
||||
"regex": "#42BE65",
|
||||
"storageModifier": "#78A9FF",
|
||||
"stringEscape": "#FFFFFF",
|
||||
"struct": "#78A9FF",
|
||||
"tag": "#78A9FF",
|
||||
"tagAttribute": "#08BDBA",
|
||||
"tagAttributeValue": "#42BE65",
|
||||
"typeParameter": "#08BDBA",
|
||||
"url": "#33B1FF",
|
||||
"variableGlobal": "#78A9FF",
|
||||
"variableLocal": "#0D0D0D",
|
||||
"variableOther": "#42BE65",
|
||||
"variableProperty": "#BE95FF"
|
||||
},
|
||||
"highlights": {
|
||||
"diffAdded": "#42BE65",
|
||||
"diffAddedBackground": "#0E3A22",
|
||||
"diffModified": "#78A9FF",
|
||||
"diffModifiedBackground": "#78A9FF20",
|
||||
"diffRemoved": "#FF8389",
|
||||
"diffRemovedBackground": "#4D1A1F",
|
||||
"lineNumber": "#4C4C4C",
|
||||
"lineNumberActive": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
"markdown": {
|
||||
"heading1": "#F2F4F8",
|
||||
"heading2": "#F2F4F8",
|
||||
"heading3": "#F2F4F8",
|
||||
"heading4": "#F2F4F8",
|
||||
"link": "#33B1FF",
|
||||
"linkHover": "#78A9FF",
|
||||
"inlineCode": "#42BE65",
|
||||
"inlineCodeBackground": "#1e1e1e",
|
||||
"blockquote": "#8D8D8D",
|
||||
"blockquoteBorder": "#393939",
|
||||
"listMarker": "#33B1FF99"
|
||||
},
|
||||
"chat": {
|
||||
"userMessage": "#F2F4F8",
|
||||
"userMessageBackground": "#262626",
|
||||
"assistantMessage": "#F2F4F8",
|
||||
"assistantMessageBackground": "#161616",
|
||||
"timestamp": "#8D8D8D",
|
||||
"divider": "#393939"
|
||||
},
|
||||
"tools": {
|
||||
"background": "#26262680",
|
||||
"border": "#4e4c4c80",
|
||||
"headerHover": "#000000",
|
||||
"icon": "#8D8D8D",
|
||||
"title": "#F2F4F8",
|
||||
"description": "#8D8D8D",
|
||||
"edit": {
|
||||
"added": "#42BE65",
|
||||
"addedBackground": "#42BE6525",
|
||||
"removed": "#FF8389",
|
||||
"removedBackground": "#FF838925",
|
||||
"lineNumber": "#4C4C4C"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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