mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat(themes): apply OpenCode color themes app-wide with a settings picker (#364)
- Vendor the 36 OpenCode theme palettes into the shared package, synced from the pinned OpenCode release tag via pnpm themes:sync. - Add a colorTheme user preference across the settings schema, defaults, and the assistant internal API. - Extend palettes with success, warning, info, and diff colors, and add a resolver that maps palettes to CSS tokens and applies them to the DOM. - Apply the theme app-wide through a ThemeProvider context, adopting the tokens in message, repo, session, and settings components, agent colors, git status styles, and diff viewers. - Add a theme picker to General settings and make model quick-select follow the active theme (fixes #355).
This commit is contained in:
1 parent
702e3c4e13
commit
5bd688de4b
116 files changed
+2702
-760
No files matched your search
@@ -71,12 +71,12 @@ function MermaidBlock({ code }: MermaidBlockProps) {
|
||||
if (error) {
|
||||
return (
|
||||
<div className="relative my-4">
|
||||
<div className="bg-red-500/10 border border-red-500/30 rounded-lg p-4">
|
||||
<div className="flex items-center gap-2 text-red-500 mb-2">
|
||||
<div className="bg-destructive/10 border border-destructive/30 rounded-lg p-4">
|
||||
<div className="flex items-center gap-2 text-destructive mb-2">
|
||||
<AlertCircle className="w-4 h-4" />
|
||||
<span className="text-sm font-medium">Mermaid Error</span>
|
||||
</div>
|
||||
<pre className="text-xs text-red-400 mb-3 whitespace-pre-wrap">{error}</pre>
|
||||
<pre className="text-xs text-destructive mb-3 whitespace-pre-wrap">{error}</pre>
|
||||
<pre className="bg-accent p-3 rounded-lg overflow-x-auto text-sm border border-border">
|
||||
<code>{code}</code>
|
||||
</pre>
|
||||
|
||||
Reference in new issue
Block a user