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": "aura-light",
|
||||
"name": "Aura",
|
||||
"description": "Aura",
|
||||
"version": "1.0.0",
|
||||
"variant": "light",
|
||||
"tags": [ "light", "palette" ]
|
||||
},
|
||||
"colors": {
|
||||
"primary": {
|
||||
"base": "#A277FF",
|
||||
"hover": "#B38FFF",
|
||||
"active": "#8D68DD",
|
||||
"foreground": "#F5F0FF",
|
||||
"muted": "#A277FF80",
|
||||
"emphasis": "#B38FFF"
|
||||
},
|
||||
"surface": {
|
||||
"background": "#F5F0FF",
|
||||
"foreground": "#2D2640",
|
||||
"muted": "#EFE8FC",
|
||||
"mutedForeground": "#5C5270",
|
||||
"elevated": "#f1ebfb",
|
||||
"elevatedForeground": "#2D2640",
|
||||
"overlay": "#15101F20",
|
||||
"subtle": "#EFE8FC"
|
||||
},
|
||||
"interactive": {
|
||||
"border": "#E0D6F2",
|
||||
"borderHover": "#D5C9EB",
|
||||
"borderFocus": "#A593C8",
|
||||
"selection": "#bdb2d74c",
|
||||
"selectionForeground": "#15101F",
|
||||
"focus": "#A277FF",
|
||||
"focusRing": "#A277FF40",
|
||||
"cursor": "#15101F",
|
||||
"hover": "#bdb2d72d",
|
||||
"active": "#bdb2d74c"
|
||||
},
|
||||
"status": {
|
||||
"error": "#D94F4F",
|
||||
"errorForeground": "#F5F0FF",
|
||||
"errorBackground": "#D94F4F20",
|
||||
"errorBorder": "#D94F4F50",
|
||||
"warning": "#D9A24A",
|
||||
"warningForeground": "#F5F0FF",
|
||||
"warningBackground": "#D9A24A20",
|
||||
"warningBorder": "#D9A24A50",
|
||||
"success": "#40BF7A",
|
||||
"successForeground": "#F5F0FF",
|
||||
"successBackground": "#40BF7A20",
|
||||
"successBorder": "#40BF7A50",
|
||||
"info": "#5BB8D9",
|
||||
"infoForeground": "#F5F0FF",
|
||||
"infoBackground": "#5BB8D920",
|
||||
"infoBorder": "#5BB8D950"
|
||||
},
|
||||
"syntax": {
|
||||
"base": {
|
||||
"background": "#EFE8FC",
|
||||
"foreground": "#2D2640",
|
||||
"comment": "#5C5270",
|
||||
"keyword": "#A277FF",
|
||||
"string": "#40BF7A",
|
||||
"number": "#D94F4F",
|
||||
"function": "#A277FF",
|
||||
"variable": "#2D2640",
|
||||
"type": "#D9A24A",
|
||||
"operator": "#D94F4F"
|
||||
},
|
||||
"tokens": {
|
||||
"boolean": "#D9A24A",
|
||||
"class": "#A277FF",
|
||||
"className": "#A277FF",
|
||||
"commentDoc": "#A9A1B8",
|
||||
"constant": "#5BB8D9",
|
||||
"decorator": "#D9A24A",
|
||||
"enum": "#A277FF",
|
||||
"exception": "#D94F4F",
|
||||
"functionCall": "#A277FF",
|
||||
"interface": "#D9A24A",
|
||||
"jsxTag": "#A277FF",
|
||||
"key": "#A277FF",
|
||||
"keywordImport": "#D94F4F",
|
||||
"label": "#D94F4F",
|
||||
"macro": "#5BB8D9",
|
||||
"method": "#40BF7A",
|
||||
"module": "#D94F4F",
|
||||
"namespace": "#D9A24A",
|
||||
"parameter": "#2D2640",
|
||||
"preprocessor": "#D94F4F",
|
||||
"punctuation": "#5C5270",
|
||||
"regex": "#40BF7A",
|
||||
"storageModifier": "#5BB8D9",
|
||||
"stringEscape": "#15101F",
|
||||
"struct": "#A277FF",
|
||||
"tag": "#A277FF",
|
||||
"tagAttribute": "#D9A24A",
|
||||
"tagAttributeValue": "#40BF7A",
|
||||
"typeParameter": "#D9A24A",
|
||||
"url": "#A277FF",
|
||||
"variableGlobal": "#A277FF",
|
||||
"variableLocal": "#FAF7FF",
|
||||
"variableOther": "#40BF7A",
|
||||
"variableProperty": "#5BB8D9"
|
||||
},
|
||||
"highlights": {
|
||||
"diffAdded": "#40BF7A",
|
||||
"diffAddedBackground": "#E8F5ED",
|
||||
"diffModified": "#5BB8D9",
|
||||
"diffModifiedBackground": "#E8E4F5",
|
||||
"diffRemoved": "#D94F4F",
|
||||
"diffRemovedBackground": "#FAE8E8",
|
||||
"lineNumber": "#C0B3DC",
|
||||
"lineNumberActive": "#15101F"
|
||||
}
|
||||
},
|
||||
"markdown": {
|
||||
"heading1": "#A277FF",
|
||||
"heading2": "#A277FF",
|
||||
"heading3": "#D9A24A",
|
||||
"heading4": "#2D2640",
|
||||
"link": "#A277FF",
|
||||
"linkHover": "#C17AC8",
|
||||
"inlineCode": "#40BF7A",
|
||||
"inlineCodeBackground": "#EFE8FC",
|
||||
"blockquote": "#6D6D6D",
|
||||
"blockquoteBorder": "#E0D6F2",
|
||||
"listMarker": "#A277FF99"
|
||||
},
|
||||
"chat": {
|
||||
"userMessage": "#2D2640",
|
||||
"userMessageBackground": "#EFE8FC",
|
||||
"assistantMessage": "#2D2640",
|
||||
"assistantMessageBackground": "#F5F0FF",
|
||||
"timestamp": "#5C5270",
|
||||
"divider": "#E0D6F2"
|
||||
},
|
||||
"tools": {
|
||||
"background": "#EFE8FC80",
|
||||
"border": "#bdb5cd80",
|
||||
"headerHover": "#FDFCFF",
|
||||
"icon": "#5C5270",
|
||||
"title": "#2D2640",
|
||||
"description": "#5C5270",
|
||||
"edit": {
|
||||
"added": "#40BF7A",
|
||||
"addedBackground": "#40BF7A25",
|
||||
"removed": "#D94F4F",
|
||||
"removedBackground": "#D94F4F25",
|
||||
"lineNumber": "#C0B3DC"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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