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:
Chris Scott authored and GitHub committed 2026-09-28 00:19:32 -04:00
1 parent 702e3c4e13
commit 5bd688de4b
116 files changed
+2702 -760

No files matched your search

@@ -23,12 +23,12 @@ export function OpenCodeConfigSourcesNotice({ config, targetName }: OpenCodeConf
if (!writeTargetName) return null
return (
<Alert className="border-blue-500/30 bg-blue-500/5">
<Info className="h-4 w-4 text-blue-500" />
<Alert className="border-info/30 bg-info/5">
<Info className="h-4 w-4 text-info" />
<details className="group" open>
<summary className="flex cursor-pointer list-none items-center justify-between gap-2 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 [&::-webkit-details-marker]:hidden">
<AlertTitle className="mb-0">Multiple configuration files are merged</AlertTitle>
<ChevronDown className="h-4 w-4 shrink-0 text-blue-500 transition-transform group-open:rotate-180" />
<ChevronDown className="h-4 w-4 shrink-0 text-info transition-transform group-open:rotate-180" />
</summary>
<AlertDescription>
<p>