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": "ayu-light",
|
||||
"name": "Ayu",
|
||||
"description": "Ayu",
|
||||
"version": "1.0.0",
|
||||
"variant": "light",
|
||||
"tags": [ "light", "palette" ]
|
||||
},
|
||||
"colors": {
|
||||
"primary": {
|
||||
"base": "#4AA8C8",
|
||||
"hover": "#6EB8D1",
|
||||
"active": "#4394B0",
|
||||
"foreground": "#FDFAF4",
|
||||
"muted": "#4AA8C880",
|
||||
"emphasis": "#6EB8D1"
|
||||
},
|
||||
"surface": {
|
||||
"background": "#FDFAF4",
|
||||
"foreground": "#394049",
|
||||
"muted": "#f7f3eb",
|
||||
"mutedForeground": "#6a727c",
|
||||
"elevated": "#faf6ed",
|
||||
"elevatedForeground": "#4F5964",
|
||||
"overlay": "#1B232B20",
|
||||
"subtle": "#FFF7E5"
|
||||
},
|
||||
"interactive": {
|
||||
"border": "#E6DDCF",
|
||||
"borderHover": "#DCD3C5",
|
||||
"borderFocus": "#B09F8F",
|
||||
"selection": "#9fb2c43e",
|
||||
"selectionForeground": "#171e25",
|
||||
"focus": "#4AA8C8",
|
||||
"focusRing": "#4AA8C840",
|
||||
"cursor": "#1B232B",
|
||||
"hover": "#9fb2c42c",
|
||||
"active": "#9fb2c43e"
|
||||
},
|
||||
"status": {
|
||||
"error": "#E6656A",
|
||||
"errorForeground": "#FDFAF4",
|
||||
"errorBackground": "#E6656A20",
|
||||
"errorBorder": "#E6656A50",
|
||||
"warning": "#EA9F41",
|
||||
"warningForeground": "#FDFAF4",
|
||||
"warningBackground": "#EA9F4120",
|
||||
"warningBorder": "#EA9F4150",
|
||||
"success": "#5FB978",
|
||||
"successForeground": "#FDFAF4",
|
||||
"successBackground": "#5FB97820",
|
||||
"successBorder": "#5FB97850",
|
||||
"info": "#2F9BCE",
|
||||
"infoForeground": "#FDFAF4",
|
||||
"infoBackground": "#2F9BCE20",
|
||||
"infoBorder": "#2F9BCE50"
|
||||
},
|
||||
"syntax": {
|
||||
"base": {
|
||||
"background": "#FCF9F3",
|
||||
"foreground": "#4F5964",
|
||||
"comment": "#77818D",
|
||||
"keyword": "#4AA8C8",
|
||||
"string": "#7FAD00",
|
||||
"number": "#EF7D71",
|
||||
"function": "#4AA8C8",
|
||||
"variable": "#4F5964",
|
||||
"type": "#ED982E",
|
||||
"operator": "#EF7D71"
|
||||
},
|
||||
"tokens": {
|
||||
"boolean": "#ED982E",
|
||||
"class": "#4AA8C8",
|
||||
"className": "#4AA8C8",
|
||||
"commentDoc": "#BABEC1",
|
||||
"constant": "#2F9BCE",
|
||||
"decorator": "#ED982E",
|
||||
"enum": "#4AA8C8",
|
||||
"exception": "#EF7D71",
|
||||
"functionCall": "#4AA8C8",
|
||||
"interface": "#ED982E",
|
||||
"jsxTag": "#4AA8C8",
|
||||
"key": "#4AA8C8",
|
||||
"keywordImport": "#EF7D71",
|
||||
"label": "#EF7D71",
|
||||
"macro": "#2F9BCE",
|
||||
"method": "#5FB978",
|
||||
"module": "#EF7D71",
|
||||
"namespace": "#ED982E",
|
||||
"parameter": "#4F5964",
|
||||
"preprocessor": "#EF7D71",
|
||||
"punctuation": "#77818D",
|
||||
"regex": "#7FAD00",
|
||||
"storageModifier": "#2F9BCE",
|
||||
"stringEscape": "#1B232B",
|
||||
"struct": "#4AA8C8",
|
||||
"tag": "#4AA8C8",
|
||||
"tagAttribute": "#ED982E",
|
||||
"tagAttributeValue": "#7FAD00",
|
||||
"typeParameter": "#ED982E",
|
||||
"url": "#2F9BCE",
|
||||
"variableGlobal": "#4AA8C8",
|
||||
"variableLocal": "#FBF8F2",
|
||||
"variableOther": "#5FB978",
|
||||
"variableProperty": "#2F9BCE"
|
||||
},
|
||||
"highlights": {
|
||||
"diffAdded": "#5FB978",
|
||||
"diffAddedBackground": "#EEF5E4",
|
||||
"diffModified": "#2F9BCE",
|
||||
"diffModifiedBackground": "#E3EDF3",
|
||||
"diffRemoved": "#E6656A",
|
||||
"diffRemovedBackground": "#FDE5E5",
|
||||
"lineNumber": "#C6BFAF",
|
||||
"lineNumberActive": "#1B232B"
|
||||
}
|
||||
},
|
||||
"markdown": {
|
||||
"heading1": "#394049",
|
||||
"heading2": "#394049",
|
||||
"heading3": "#394049",
|
||||
"heading4": "#394049",
|
||||
"link": "#2F9BCE",
|
||||
"linkHover": "#4AA8C8",
|
||||
"inlineCode": "#7FAD00",
|
||||
"inlineCodeBackground": "#FCF9F3",
|
||||
"blockquote": "#ED982E",
|
||||
"blockquoteBorder": "#E6DDCF",
|
||||
"listMarker": "#4AA8C899"
|
||||
},
|
||||
"chat": {
|
||||
"userMessage": "#4F5964",
|
||||
"userMessageBackground": "#fff7e5",
|
||||
"assistantMessage": "#4F5964",
|
||||
"assistantMessageBackground": "#FDFAF4",
|
||||
"timestamp": "#77818D",
|
||||
"divider": "#E6DDCF"
|
||||
},
|
||||
"tools": {
|
||||
"background": "#FCF9F380",
|
||||
"border": "#cec6b980",
|
||||
"headerHover": "#FAF7F1",
|
||||
"icon": "#77818D",
|
||||
"title": "#4F5964",
|
||||
"description": "#77818D",
|
||||
"edit": {
|
||||
"added": "#5FB978",
|
||||
"addedBackground": "#5FB97825",
|
||||
"removed": "#E6656A",
|
||||
"removedBackground": "#E6656A25",
|
||||
"lineNumber": "#C6BFAF"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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