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

@@ -5,7 +5,7 @@ export function MessageSkeleton() {
<div className="flex flex-col space-y-2 p-2 overflow-x-hidden">
{/* User message skeleton */}
<div className="flex flex-col">
<div className="w-full rounded-lg p-1.5 bg-blue-600/20 border border-blue-600/30">
<div className="w-full rounded-lg p-1.5 bg-primary/20 border border-primary/30">
<div className="flex items-center gap-2 mb-1">
<div className="h-3 w-12 bg-muted animate-pulse rounded" />
<div className="h-3 w-16 bg-muted animate-pulse rounded" />
@@ -24,7 +24,7 @@ export function MessageSkeleton() {
<div className="h-3 w-16 bg-muted animate-pulse rounded" />
<div className="h-3 w-16 bg-muted animate-pulse rounded" />
<div className="flex items-center gap-1">
<div className="h-3 w-20 bg-blue-600/20 animate-pulse rounded" />
<div className="h-3 w-20 bg-primary/20 animate-pulse rounded" />
</div>
</div>
<div className="space-y-2">
@@ -36,7 +36,7 @@ export function MessageSkeleton() {
</div>
</div>
<div className="flex flex-col">
<div className="w-full rounded-lg p-1.5 bg-blue-600/20 border border-blue-600/30">
<div className="w-full rounded-lg p-1.5 bg-primary/20 border border-primary/30">
<div className="flex items-center gap-2 mb-1">
<div className="h-3 w-12 bg-muted animate-pulse rounded" />
<div className="h-3 w-16 bg-muted animate-pulse rounded" />
@@ -55,7 +55,7 @@ export function MessageSkeleton() {
<div className="h-3 w-16 bg-muted animate-pulse rounded" />
<div className="h-3 w-16 bg-muted animate-pulse rounded" />
<div className="flex items-center gap-1">
<div className="h-3 w-20 bg-blue-600/20 animate-pulse rounded" />
<div className="h-3 w-20 bg-primary/20 animate-pulse rounded" />
</div>
</div>
<div className="space-y-2">
@@ -69,7 +69,7 @@ export function MessageSkeleton() {
{/* Second user message skeleton */}
<div className="flex flex-col">
<div className="w-full rounded-lg p-1.5 bg-blue-600/20 border border-blue-600/30">
<div className="w-full rounded-lg p-1.5 bg-primary/20 border border-primary/30">
<div className="flex items-center gap-2 mb-1">
<div className="h-3 w-12 bg-muted animate-pulse rounded" />
<div className="h-3 w-16 bg-muted animate-pulse rounded" />
@@ -88,7 +88,7 @@ export function MessageSkeleton() {
<div className="h-3 w-16 bg-muted animate-pulse rounded" />
<div className="flex items-center gap-1">
<span className="animate-pulse">●</span>
<div className="h-3 w-24 bg-blue-600/20 animate-pulse rounded" />
<div className="h-3 w-24 bg-primary/20 animate-pulse rounded" />
</div>
</div>
<div className="flex items-center gap-2 text-muted-foreground">