A desktop coding agent with free access to frontier models.
TypeScript
feat: theme tokens for fixed app colours
ogsamratb4c12d6dcc42
diff --git a/apps/app/src/components/ui/badge.tsx b/apps/app/src/components/ui/badge.tsxindex d93b7dcd..aec7ce2f 100644--- a/apps/app/src/components/ui/badge.tsx+++ b/apps/app/src/components/ui/badge.tsx@@ -18,7 +18,7 @@ const badgeVariants = cva("border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",- link: "text-primary underline-offset-4 hover:underline",+ link: "text-link underline-offset-4 hover:underline",},},defaultVariants: {diff --git a/apps/app/src/components/ui/button.tsx b/apps/app/src/components/ui/button.tsxindex 68769175..a69a4f0e 100644--- a/apps/app/src/components/ui/button.tsx+++ b/apps/app/src/components/ui/button.tsx@@ -17,7 +17,7 @@ const buttonVariants = cva("hover:text-foreground aria-expanded:text-foreground",destructive:"border-border text-destructive hover:bg-destructive/10 hover:border-destructive/40 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:border-border dark:hover:bg-destructive/10 dark:border-destructive/40 dark:focus-visible:ring-destructive/40 bg-clip-padding shadow-xs/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] active:not-aria-[haspopup]:translate-y-px",- link: "text-primary underline-offset-4 hover:underline",+ link: "text-link underline-offset-4 hover:underline",},size: {default:diff --git a/apps/app/src/components/ui/empty.tsx b/apps/app/src/components/ui/empty.tsxindex 0762bc95..e7ee97b2 100644--- a/apps/app/src/components/ui/empty.tsx+++ b/apps/app/src/components/ui/empty.tsx@@ -90,7 +90,7 @@ function EmptyDescription({ className, ...props }: React.ComponentProps<"p">) {<divdata-slot="empty-description"className={cn(- "text-sm text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",+ "text-sm text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-link",className)}{...props}diff --git a/apps/app/src/components/ui/field.tsx b/apps/app/src/components/ui/field.tsxindex 0031aae7..f0507fc5 100644--- a/apps/app/src/components/ui/field.tsx+++ b/apps/app/src/components/ui/field.tsx@@ -140,7 +140,7 @@ function FieldDescription({ className, ...props }: React.ComponentProps<"p">) {className={cn("text-start text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5","last:mt-0 nth-last-2:-mt-1",- "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",+ "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-link",className)}{...props}diff --git a/apps/app/src/components/ui/source.tsx b/apps/app/src/components/ui/source.tsxindex 6099f4f2..e9e7b819 100644--- a/apps/app/src/components/ui/source.tsx+++ b/apps/app/src/components/ui/source.tsx@@ -57,7 +57,7 @@ export function SourceTrigger({return (<HoverCardTrigger render={<a href={href} target="_blank" rel="noopener noreferrer" className={cn(- "bg-muted text-muted-foreground hover:bg-muted-foreground/30 hover:text-primary inline-flex h-5 max-w-32 items-center gap-1 overflow-hidden rounded-full py-0 text-xs no-underline transition-colors duration-150",+ "bg-muted text-muted-foreground hover:bg-muted-foreground/30 hover:text-link inline-flex h-5 max-w-32 items-center gap-1 overflow-hidden rounded-full py-0 text-xs no-underline transition-colors duration-150",showFavicon ? "pe-2 ps-1" : "px-1",className)} />}>{showFavicon && (@@ -110,7 +110,7 @@ export function SourceContent({height={16}/>)}- <div className="text-primary truncate text-sm">+ <div className="text-link truncate text-sm">{domain.replace("www.", "")}</div></div>diff --git a/apps/app/src/react-app/design-system/select-menu.tsx b/apps/app/src/react-app/design-system/select-menu.tsxindex c246cdf9..ec63254e 100644--- a/apps/app/src/react-app/design-system/select-menu.tsx+++ b/apps/app/src/react-app/design-system/select-menu.tsx@@ -110,7 +110,7 @@ export function SelectMenu(props: SelectMenuProps) {{opt.value === props.value ? (<Checksize={16}- className="shrink-0 text-[var(--dls-accent)]"+ className="shrink-0 text-[var(--omnirush-link,var(--dls-accent))]"aria-hidden/>) : null}diff --git a/apps/app/src/react-app/domains/buildathon/buildathon.tsx b/apps/app/src/react-app/domains/buildathon/buildathon.tsxindex ff78f3b2..2a4288b6 100644--- a/apps/app/src/react-app/domains/buildathon/buildathon.tsx+++ b/apps/app/src/react-app/domains/buildathon/buildathon.tsx@@ -374,7 +374,7 @@ function LinkedText(props: { text: string }) {<buttonkey={index}type="button"- className="break-all text-primary hover:underline"+ className="break-all text-link hover:underline"onClick={() => void openDesktopUrl(part).catch(() => undefined)}>{part}@@ -430,7 +430,7 @@ function UpdatesSection(props: { announcements: BuildathonAnnouncement[]; unread{announcement.url ? (<buttontype="button"- className="mt-1 inline-flex items-center gap-1 text-primary hover:underline"+ className="mt-1 inline-flex items-center gap-1 text-link hover:underline"onClick={() => void openDesktopUrl(announcement.url!).catch(() => undefined)}>Open link <ExternalLink className="size-3" />@@ -575,7 +575,7 @@ export function BuildathonPanel(props: { status: BuildathonStatus; onClose: () =))}</ul>{event.pageUrl ? (- <button type="button" className="inline-flex items-center gap-1 text-xs text-primary hover:underline" onClick={() => void openDesktopUrl(event.pageUrl!).catch(() => undefined)}>+ <button type="button" className="inline-flex items-center gap-1 text-xs text-link hover:underline" onClick={() => void openDesktopUrl(event.pageUrl!).catch(() => undefined)}>Event page <ExternalLink className="size-3" /></button>) : null}diff --git a/apps/app/src/react-app/domains/session/chat/permission-approval-modal.tsx b/apps/app/src/react-app/domains/session/chat/permission-approval-modal.tsxindex 545ff244..b8f55391 100644--- a/apps/app/src/react-app/domains/session/chat/permission-approval-modal.tsx+++ b/apps/app/src/react-app/domains/session/chat/permission-approval-modal.tsx@@ -275,7 +275,7 @@ export function PermissionApprovalModal(props: PermissionApprovalModalProps) {const Icon = presentation.isDoomLoop ? RefreshCcw : ShieldCheck;const iconClass = presentation.isDoomLoop? "bg-amber-3/30 text-amber-11"- : "bg-[rgba(var(--dls-accent-rgb),0.1)] text-dls-accent";+ : "bg-[rgba(var(--dls-accent-rgb),0.1)] text-[var(--omnirush-link,var(--dls-accent))]";useEffect(() => {previousActiveElementRef.current =diff --git a/apps/app/src/react-app/domains/session/chat/session-page.tsx b/apps/app/src/react-app/domains/session/chat/session-page.tsxindex 919207cf..472059ef 100644--- a/apps/app/src/react-app/domains/session/chat/session-page.tsx+++ b/apps/app/src/react-app/domains/session/chat/session-page.tsx@@ -1630,7 +1630,7 @@ export function SessionPage(props: SessionPageProps) {size="icon-sm"className={cn("hidden rounded-xl text-gray-10 transition-colors hover:bg-muted hover:text-foreground @min-[40rem]/titlebar:inline-flex",- sidePanelOpen && "bg-primary/10 text-primary hover:bg-primary/15 hover:text-primary",+ sidePanelOpen && "bg-primary/10 text-link hover:bg-primary/15 hover:text-link",)}aria-label={sidePanelOpen ? "Close side panel" : "Open side panel"}aria-pressed={sidePanelOpen}@@ -2343,7 +2343,7 @@ export function SessionPage(props: SessionPageProps) {size="icon-sm"className={cn("rounded-xl transition-colors hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-35 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",- panelRailActive && hasBrowserTabs && "bg-primary/10 text-primary hover:bg-primary/15 hover:text-primary",+ panelRailActive && hasBrowserTabs && "bg-primary/10 text-link hover:bg-primary/15 hover:text-link",)}onClick={openBrowserRailPane}title={hasBrowserTabs ? "Browser" : "Browser opens when a page is available"}@@ -2359,7 +2359,7 @@ export function SessionPage(props: SessionPageProps) {size="icon-sm"className={cn("rounded-xl transition-colors hover:bg-muted hover:text-foreground",- panelRailActive && "bg-primary/10 text-primary hover:bg-primary/15 hover:text-primary",+ panelRailActive && "bg-primary/10 text-link hover:bg-primary/15 hover:text-link",)}onClick={panelRailActive ? closeRightPane : openArtifactRailPane}title={`Files (${artifactTargetCount})`}diff --git a/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx b/apps/app/src/react-app/domains/session/commands/session-command-controls.tsxindex 03ee8875..5979644f 100644--- a/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx+++ b/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx@@ -179,7 +179,7 @@ function StatusPopover(props: SessionCommandControlsProps) {<Buttonvariant="ghost"size="icon-sm"- className={cn(iconButton, open && "bg-primary/10 text-primary")}+ className={cn(iconButton, open && "bg-primary/10 text-link")}aria-label="Status"data-testid="session-status">diff --git a/apps/app/src/react-app/domains/session/editor/editor-panel.tsx b/apps/app/src/react-app/domains/session/editor/editor-panel.tsxindex ae989f59..687ec7ab 100644--- a/apps/app/src/react-app/domains/session/editor/editor-panel.tsx+++ b/apps/app/src/react-app/domains/session/editor/editor-panel.tsx@@ -358,7 +358,7 @@ function ChangesView(props: {)}title={file.baseline === undefined ? "Changed again since the agent's turn: shown without a review diff" : file.path}>- {isPending ? <CircleDot className="size-3 shrink-0 text-primary" /> : <Check className="size-3 shrink-0 text-muted-foreground" />}+ {isPending ? <CircleDot className="size-3 shrink-0 text-link" /> : <Check className="size-3 shrink-0 text-muted-foreground" />}<span className={cn("min-w-0 flex-1 truncate", !isPending && "text-muted-foreground")}>{file.path.split("/").pop()}<span className="ms-1.5 text-[10.5px] text-muted-foreground">{file.path.includes("/") ? file.path.slice(0, file.path.lastIndexOf("/")) : ""}</span>@@ -985,7 +985,7 @@ export default function EditorPanel(props: EditorPanelProps) {)}onClick={() => useEditorStore.getState().selectTab(workspaceId, tab.id)}>- {tab.kind === "review" ? <CircleDot className="size-3 shrink-0 text-primary" /> : tab.kind === "git" ? <GitBranch className="size-3 shrink-0" /> : null}+ {tab.kind === "review" ? <CircleDot className="size-3 shrink-0 text-link" /> : tab.kind === "git" ? <GitBranch className="size-3 shrink-0" /> : null}<span className="truncate">{name}{tab.kind === "git" ? ` (${tab.ref === "HEAD" ? "staged" : "working"})` : ""}</span><buttontype="button"@@ -1074,7 +1074,7 @@ export default function EditorPanel(props: EditorPanelProps) {aria-pressed={active}className={cn("relative flex size-9 items-center justify-center rounded-lg transition-colors [&_svg]:size-[18px]",- active ? "bg-primary/10 text-primary" : "text-muted-foreground hover:bg-muted hover:text-foreground",+ active ? "bg-primary/10 text-link" : "text-muted-foreground hover:bg-muted hover:text-foreground",)}>{icon}diff --git a/apps/app/src/react-app/domains/session/editor/editor-surface.tsx b/apps/app/src/react-app/domains/session/editor/editor-surface.tsxindex a700e3c1..8928d203 100644--- a/apps/app/src/react-app/domains/session/editor/editor-surface.tsx+++ b/apps/app/src/react-app/domains/session/editor/editor-surface.tsx@@ -8,6 +8,7 @@import { useEffect, useRef, useState } from "react";import type * as MonacoApi from "monaco-editor/editor/editor.api.js";+import { subscribeToTheme } from "@/app/theme";import { applyMonacoTheme, monacoThemeName, type Monaco } from "./monaco";import type { FileDoc } from "./editor-models";import { hunkCounts, type LineHunk } from "./hunk-ops";@@ -136,19 +137,18 @@ export function EditorSurface({ monaco, surface, onSave, onCursor, onHunks, naviconst disposables = [cursor(code), cursor(diff.getModifiedEditor())];codeRef.current = code;diffRef.current = diff;- // Light/dark follows the app (`data-theme` on <html>).- const observer = new MutationObserver(() => {+ // Follows the app theme: light/dark, presets and custom themes (app/theme.ts).+ const unsubscribeTheme = subscribeToTheme(() => {applyMonacoTheme();// Repaint now: a composited editor layer can otherwise keep the old background until it scrolls.code.render(true);diff.getModifiedEditor().render(true);diff.getOriginalEditor().render(true);});- observer.observe(document.documentElement, { attributes: true, attributeFilter: ["class", "data-theme"] });return () => {const key = currentKey.current;if (key) VIEW_STATES.set(key, modeRef.current === "diff" ? diff.saveViewState() : code.saveViewState());- observer.disconnect();+ unsubscribeTheme();for (const disposable of disposables) disposable.dispose();code.dispose();diff.dispose();diff --git a/apps/app/src/react-app/domains/session/editor/monaco.ts b/apps/app/src/react-app/domains/session/editor/monaco.tsindex 76ef3c4a..10a9253f 100644--- a/apps/app/src/react-app/domains/session/editor/monaco.ts+++ b/apps/app/src/react-app/domains/session/editor/monaco.ts@@ -10,6 +10,8 @@*/import * as monaco from "monaco-editor/editor/editor.api.js";import EditorWorker from "monaco-editor/editor/editor.worker.js?worker";+import { getActiveTheme } from "@/app/theme";+import { legacyMonacoTheme, monacoThemeFor } from "@/app/themes/editor-themes";import "monaco-editor/features/codicon/register.js";import "monaco-editor/features/codeEditor/register.js";@@ -130,48 +132,47 @@ export function appIsDark(): boolean {}let configured = false;+let themeGeneration = 0;-/** The editor's themes, from the app's design tokens (index.css): light and dark follow the app. */-function defineThemes(): void {- const css = getComputedStyle(document.documentElement);- const token = (name: string, fallback: string) => {- const value = css.getPropertyValue(name).trim();- return /^#[0-9a-f]{3,8}$/i.test(value) ? value : fallback;- };- const dark = appIsDark();- const name = dark ? "omnirush-dark" : "omnirush-light";- monaco.editor.defineTheme(name, {- base: dark ? "vs-dark" : "vs",- inherit: true,- rules: [],- colors: {- "editor.background": token("--background", dark ? "#111113" : "#fcfcfd"),- "editor.foreground": token("--foreground", dark ? "#edeef0" : "#1c2024"),- "editorLineNumber.foreground": dark ? "#5a6169" : "#a0a5ad",- "editorLineNumber.activeForeground": dark ? "#b0b4ba" : "#60646c",- "editor.lineHighlightBackground": dark ? "#18191b" : "#f5f5f7",- "editor.lineHighlightBorder": "#00000000",- "editorGutter.background": token("--background", dark ? "#111113" : "#fcfcfd"),- "editorWidget.background": dark ? "#18191b" : "#ffffff",- "editorWidget.border": dark ? "#2e3135" : "#e0e1e6",- "diffEditor.insertedLineBackground": dark ? "#3dd68c1f" : "#30a46c1c",- "diffEditor.removedLineBackground": dark ? "#ff95921f" : "#e5484d1a",- "diffEditor.insertedTextBackground": dark ? "#3dd68c33" : "#30a46c33",- "diffEditor.removedTextBackground": dark ? "#ff959233" : "#e5484d33",- "scrollbarSlider.background": dark ? "#ffffff1a" : "#0000001a",- "scrollbarSlider.hoverBackground": dark ? "#ffffff29" : "#00000029",- },- });+/**+ * The editor theme from the active app theme: a preset or custom theme's code+ * colours, or (Default preset) today's look from the app's design tokens.+ */+function defineThemes(): string {+ const active = getActiveTheme();+ let data;+ if (active.legacy) {+ const css = getComputedStyle(document.documentElement);+ const token = (name: string, fallback: string) => {+ const value = css.getPropertyValue(name).trim();+ return /^#[0-9a-f]{3,8}$/i.test(value) ? value : fallback;+ };+ const dark = appIsDark();+ data = legacyMonacoTheme(+ dark,+ token("--background", dark ? "#111113" : "#fcfcfd"),+ token("--foreground", dark ? "#edeef0" : "#1c2024"),+ );+ } else {+ data = monacoThemeFor(active);+ }+ // A fresh name per definition, so Monaco always switches (and repaints) to it.+ themeGeneration += 1;+ const name = `omnirush-${data.base === "vs-dark" ? "dark" : "light"}-${themeGeneration}`;+ monaco.editor.defineTheme(name, data);+ currentThemeName = name;+ return name;}+let currentThemeName = "";+export function monacoThemeName(): string {- return appIsDark() ? "omnirush-dark" : "omnirush-light";+ return currentThemeName || defineThemes();}-/** Re-reads the app's tokens and switches the editor theme (light/dark changed). */+/** Re-reads the active theme and switches the editor theme (mode, preset or custom theme changed). */export function applyMonacoTheme(): void {- defineThemes();- monaco.editor.setTheme(monacoThemeName());+ monaco.editor.setTheme(defineThemes());}export function setupMonaco(): Monaco {diff --git a/apps/app/src/react-app/domains/session/sidebar/account-status-menu.tsx b/apps/app/src/react-app/domains/session/sidebar/account-status-menu.tsxindex 47eb495e..7f0b0f14 100644--- a/apps/app/src/react-app/domains/session/sidebar/account-status-menu.tsx+++ b/apps/app/src/react-app/domains/session/sidebar/account-status-menu.tsx@@ -359,7 +359,7 @@ export function AccountStatusMenu(props: AccountStatusMenuProps) {: runtimeStatus?.label}>{signedIn ? (- <span className="flex size-6 shrink-0 items-center justify-center rounded-full bg-primary/15 text-[10px] font-semibold text-primary">+ <span className="flex size-6 shrink-0 items-center justify-center rounded-full bg-primary/15 text-[10px] font-semibold text-link">{accountInitials(user.name, user.email)}</span>) : (diff --git a/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx b/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsxindex 6d8c2540..5e5a5fb1 100644--- a/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx+++ b/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx@@ -988,7 +988,7 @@ type NativeAccountStatus = Awaited<ReturnType<typeof omnirushAccountStatus>>;function OmniRushWordmark({ className }: { className?: string }) {return (<span className={className} aria-label="omnirush.ai">- <span>omnirush</span><span className="text-[#b9f45a]">.ai</span>+ <span>omnirush</span><span className="text-highlight">.ai</span></span>);}@@ -1113,7 +1113,7 @@ function NativeAccountFooter({ onOpenAccountSettings }: { onOpenAccountSettings:<spanclassName={cn("absolute -bottom-0.5 -right-0.5 size-2 rounded-full border border-sidebar",- connected ? "bg-[#b9f45a]" : "bg-muted-foreground/50",+ connected ? "bg-highlight" : "bg-muted-foreground/50",)}/></span>@@ -1127,7 +1127,7 @@ function NativeAccountFooter({ onOpenAccountSettings }: { onOpenAccountSettings:</span>{usage ? (<span className="mt-1 block h-0.5 overflow-hidden rounded-full bg-sidebar-border" aria-hidden="true">- <span className="block h-full rounded-full bg-[#b9f45a]" style={{ width: `${usage.percent}%` }} />+ <span className="block h-full rounded-full bg-highlight" style={{ width: `${usage.percent}%` }} /></span>) : null}</span>diff --git a/apps/app/src/react-app/domains/session/terminal/terminal-dock.tsx b/apps/app/src/react-app/domains/session/terminal/terminal-dock.tsxindex 9b107476..fc833222 100644--- a/apps/app/src/react-app/domains/session/terminal/terminal-dock.tsx+++ b/apps/app/src/react-app/domains/session/terminal/terminal-dock.tsx@@ -103,13 +103,13 @@ export function TerminalDock({ workspaceId, workspaceRoot, isRemoteWorkspace, onreturn (<section- className="flex h-full min-h-0 flex-col border-t border-border bg-[#0b0d12] text-white"+ className="flex h-full min-h-0 flex-col border-t border-border bg-terminal text-terminal-foreground"aria-label="Terminal"onKeyDownCapture={onKeyDown}>- <header className="flex h-9 shrink-0 items-center gap-1 border-b border-white/10 bg-black/35 px-2 text-xs">+ <header className="flex h-9 shrink-0 items-center gap-1 border-b border-terminal-foreground/10 bg-[var(--omnirush-terminal-header,rgb(0_0_0/0.35))] px-2 text-xs">{unavailable ? (- <div className="min-w-0 flex-1 truncate px-1 text-white/75">Terminal · {unavailable}</div>+ <div className="min-w-0 flex-1 truncate px-1 text-terminal-foreground/75">Terminal · {unavailable}</div>) : (<><div role="tablist" aria-label="Terminal tabs" className="flex min-w-0 flex-1 items-center gap-1 overflow-x-auto">@@ -133,7 +133,7 @@ export function TerminalDock({ workspaceId, workspaceRoot, isRemoteWorkspace, on<Buttonvariant="ghost"size="icon-sm"- className="shrink-0 text-white/70 hover:bg-white/10 hover:text-white"+ className="shrink-0 text-terminal-foreground/70 hover:bg-terminal-foreground/10 hover:text-terminal-foreground"onClick={() => addTab()}title={NEW_TAB_HINT}aria-label="New terminal"@@ -147,7 +147,7 @@ export function TerminalDock({ workspaceId, workspaceRoot, isRemoteWorkspace, on<Buttonvariant="ghost"size="icon-sm"- className="-ml-1 shrink-0 text-white/70 hover:bg-white/10 hover:text-white"+ className="-ml-1 shrink-0 text-terminal-foreground/70 hover:bg-terminal-foreground/10 hover:text-terminal-foreground"aria-label="New terminal with a shell"title="New terminal with…">@@ -165,12 +165,12 @@ export function TerminalDock({ workspaceId, workspaceRoot, isRemoteWorkspace, on</DropdownMenu>) : null}</div>- <div className="hidden max-w-[40%] shrink truncate px-2 text-white/45 md:block" title={status?.text}>+ <div className="hidden max-w-[40%] shrink truncate px-2 text-terminal-foreground/45 md:block" title={status?.text}>{status?.text}</div></>)}- <Button variant="ghost" size="icon-sm" className="shrink-0 text-white/70 hover:bg-white/10 hover:text-white" onClick={onClose}>+ <Button variant="ghost" size="icon-sm" className="shrink-0 text-terminal-foreground/70 hover:bg-terminal-foreground/10 hover:text-terminal-foreground" onClick={onClose}><X className="size-4" /><span className="sr-only">Hide terminal</span></Button>@@ -201,7 +201,7 @@ function TerminalTabButton(props: {<inputautoFocusaria-label="Terminal name"- className="h-6 w-32 shrink-0 rounded border border-white/30 bg-black/60 px-1.5 text-xs text-white outline-none"+ className="h-6 w-32 shrink-0 rounded border border-terminal-foreground/30 bg-[var(--omnirush-terminal-input,rgb(0_0_0/0.6))] px-1.5 text-xs text-terminal-foreground outline-none"value={draft}onChange={(event) => setDraft(event.target.value)}onFocus={(event) => event.target.select()}@@ -220,7 +220,7 @@ function TerminalTabButton(props: {aria-selected={props.active}tabIndex={0}title={`${props.tab.name} (double-click to rename)`}- className={`group flex h-6 max-w-44 shrink-0 cursor-default items-center gap-1 rounded pl-2 pr-1 ${props.active ? "bg-white/15 text-white" : "text-white/60 hover:bg-white/10 hover:text-white"}`}+ className={`group flex h-6 max-w-44 shrink-0 cursor-default items-center gap-1 rounded pl-2 pr-1 ${props.active ? "bg-terminal-foreground/15 text-terminal-foreground" : "text-terminal-foreground/60 hover:bg-terminal-foreground/10 hover:text-terminal-foreground"}`}onClick={props.onSelect}onDoubleClick={props.onStartRename}onAuxClick={(event) => {@@ -235,7 +235,7 @@ function TerminalTabButton(props: {<buttontype="button"aria-label={`Close ${props.tab.name}`}- className={`flex size-4 items-center justify-center rounded hover:bg-white/20 ${props.active ? "opacity-80" : "opacity-0 group-hover:opacity-80"}`}+ className={`flex size-4 items-center justify-center rounded hover:bg-terminal-foreground/20 ${props.active ? "opacity-80" : "opacity-0 group-hover:opacity-80"}`}onClick={(event) => {event.stopPropagation();props.onClose();diff --git a/apps/app/src/react-app/domains/session/terminal/terminal-runtime.ts b/apps/app/src/react-app/domains/session/terminal/terminal-runtime.tsindex 80d541db..0a7b1108 100644--- a/apps/app/src/react-app/domains/session/terminal/terminal-runtime.ts+++ b/apps/app/src/react-app/domains/session/terminal/terminal-runtime.ts@@ -5,6 +5,8 @@import { FitAddon } from "@xterm/addon-fit";import { Terminal } from "@xterm/xterm";import { create } from "zustand";+import { getActiveTheme, subscribeToTheme } from "@/app/theme";+import { xtermThemeFor } from "@/app/themes/editor-themes";import { useTerminalTabsStore } from "./terminal-tabs-store";export type TerminalBridge = {@@ -43,6 +45,19 @@ function setStatus(tabId: string, status: TerminalTabStatus | null) {}const live = new Map<string, Live>();++// Open terminals recolour live when the theme (mode, preset or custom theme) changes.+let themeSubscribed = false;+function followAppTheme() {+ if (themeSubscribed || typeof window === "undefined") return;+ themeSubscribed = true;+ subscribeToTheme(() => {+ const theme = xtermThemeFor(getActiveTheme());+ for (const entry of live.values()) {+ if (!entry.disposed) entry.term.options.theme = theme;+ }+ });+}const byTerminalId = new Map<string, string>();let bridgeListeners: { onData: TerminalBridge["onData"]; off: () => void } | null = null;@@ -67,6 +82,7 @@ function listen(bridge: TerminalBridge) {}function makeLive(tabId: string, bridge: TerminalBridge, options: Live["options"]): Live {+ followAppTheme();const host = document.createElement("div");host.className = "h-full w-full";host.dataset.terminalTab = tabId;@@ -76,12 +92,7 @@ function makeLive(tabId: string, bridge: TerminalBridge, options: Live["options"scrollback: 5000,fontFamily: "'SFMono-Regular', 'Cascadia Code', 'Liberation Mono', Menlo, monospace",fontSize: 12,- theme: {- background: "#0b0d12",- foreground: "#d7dde8",- cursor: "#ffffff",- selectionBackground: "#334155",- },+ theme: xtermThemeFor(getActiveTheme()),});const fit = new FitAddon();term.loadAddon(fit);diff --git a/apps/app/src/react-app/domains/settings/pages/general-view.tsx b/apps/app/src/react-app/domains/settings/pages/general-view.tsxindex 342d4ae5..88db38a0 100644--- a/apps/app/src/react-app/domains/settings/pages/general-view.tsx+++ b/apps/app/src/react-app/domains/settings/pages/general-view.tsx@@ -483,7 +483,7 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {{usage ? (<div className="mt-2 h-1.5 overflow-hidden rounded-full bg-dls-hover" aria-label={`${Math.round(usage.percent)}% used`}><div- className="h-full rounded-full bg-[#b9f45a]"+ className="h-full rounded-full bg-highlight"style={{ width: `${usage.percent}%` }}/></div>diff --git a/apps/app/src/react-app/shell/architecture-mismatch-gate.tsx b/apps/app/src/react-app/shell/architecture-mismatch-gate.tsxindex 2f01eed3..8ba83bf1 100644--- a/apps/app/src/react-app/shell/architecture-mismatch-gate.tsx+++ b/apps/app/src/react-app/shell/architecture-mismatch-gate.tsx@@ -98,7 +98,7 @@ export function ArchitectureMismatchGate({ children }: ArchitectureMismatchGatePif (!info?.mismatch) return <>{children}</>;return (- <main className="min-h-dvh bg-[#05070c] text-white">+ <main className="min-h-dvh bg-gate text-white"><div className="mx-auto flex min-h-dvh w-full max-w-5xl items-center px-6 py-12"><section className="w-full overflow-hidden rounded-[32px] border border-white/10 bg-white/[0.04] shadow-2xl shadow-black/40"><div className="grid gap-0 lg:grid-cols-[1.05fr_0.95fr]">diff --git a/apps/app/src/react-app/shell/cloud-workspace-overlay.tsx b/apps/app/src/react-app/shell/cloud-workspace-overlay.tsxindex 3f1e37d9..0daa4003 100644--- a/apps/app/src/react-app/shell/cloud-workspace-overlay.tsx+++ b/apps/app/src/react-app/shell/cloud-workspace-overlay.tsx@@ -403,7 +403,7 @@ export function CloudWorkspaceBootTakeover(props: { decision: CloudWorkspaceMain"flex size-12 shrink-0 items-center justify-center rounded-2xl border",attention? "border-amber-7/35 bg-amber-3/60 text-amber-11"- : "border-dls-border bg-dls-hover text-dls-accent",+ : "border-dls-border bg-dls-hover text-[var(--omnirush-link,var(--dls-accent))]",)}>{attention ? (diff --git a/apps/app/src/react-app/shell/update-gate.tsx b/apps/app/src/react-app/shell/update-gate.tsxindex e4ec21db..18fafc62 100644--- a/apps/app/src/react-app/shell/update-gate.tsx+++ b/apps/app/src/react-app/shell/update-gate.tsx@@ -240,7 +240,7 @@ export function UpdateRequiredView(props: { gate: UpdateGateState; appName: striaria-modal="true"aria-labelledby="update-required-title"data-testid="update-required-view"- className="fixed inset-0 z-[80] flex items-center justify-center overflow-y-auto bg-[#05070c] px-6 py-12 text-white mac:titlebar-drag"+ className="fixed inset-0 z-[80] flex items-center justify-center overflow-y-auto bg-gate px-6 py-12 text-white mac:titlebar-drag"><section className="w-full max-w-xl rounded-[28px] border border-white/10 bg-white/[0.04] p-8 shadow-2xl shadow-black/40 sm:p-10"><div className="inline-flex rounded-full border border-amber-300/30 bg-amber-300/10 px-3 py-1 text-xs font-semibold uppercase tracking-[0.24em] text-amber-100">