Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(ui): sweep the remaining hardcoded dark washes onto theme-aware sheen and scrim tokens

rubenluetke10-beep3bbe9434913f
diff --git a/jarvis/ui/web/frontend/src/components/agentic/PromptHistoryButton.tsx b/jarvis/ui/web/frontend/src/components/agentic/PromptHistoryButton.tsx
index 06cba951c9..b74bb6d09d 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/PromptHistoryButton.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/PromptHistoryButton.tsx
@@ -129,8 +129,8 @@ export function PromptHistoryButton({
"flex h-6 min-w-6 shrink-0 items-center justify-center gap-1 rounded-md px-1.5",
"text-[10px] font-medium tabular-nums transition-colors active:translate-y-px",
light
- ? "text-[#6b6b73] hover:bg-black/10 hover:text-[#2b2b33]"
- : "text-[#9a9aa5] hover:bg-white/10 hover:text-[#e8e8ec]",
+ ? "text-[#6b6b73] hover:bg-scrim/10 hover:text-[#2b2b33]"
+ : "text-[#9a9aa5] hover:bg-sheen/10 hover:text-[#e8e8ec]",
)}
>
<History className="h-3.5 w-3.5" aria-hidden="true" />
diff --git a/jarvis/ui/web/frontend/src/components/board/ActivityHeatmap.tsx b/jarvis/ui/web/frontend/src/components/board/ActivityHeatmap.tsx
index a29c53137a..95f952b706 100644
--- a/jarvis/ui/web/frontend/src/components/board/ActivityHeatmap.tsx
+++ b/jarvis/ui/web/frontend/src/components/board/ActivityHeatmap.tsx
@@ -4,7 +4,7 @@ import { useT } from "@/i18n";
import { cn } from "@/lib/utils";
const LEVEL: Record<number, string> = {
- 0: "bg-white/[0.04] ring-1 ring-inset ring-white/[0.03]",
+ 0: "bg-sheen/[0.04] ring-1 ring-inset ring-sheen/[0.03]",
1: "bg-primary/30",
2: "bg-primary/50",
3: "bg-primary/75",
diff --git a/jarvis/ui/web/frontend/src/components/board/BoardCard.tsx b/jarvis/ui/web/frontend/src/components/board/BoardCard.tsx
index a8dc05912d..8964e0ce61 100644
--- a/jarvis/ui/web/frontend/src/components/board/BoardCard.tsx
+++ b/jarvis/ui/web/frontend/src/components/board/BoardCard.tsx
@@ -20,8 +20,8 @@ export function BoardCard({ children, className, glow }: BoardCardProps) {
<div
className={cn(
"relative overflow-hidden rounded-[20px]",
- "bg-gradient-to-b from-white/[0.055] to-white/[0.015]",
- "border border-white/[0.07]",
+ "bg-gradient-to-b from-sheen/[0.055] to-sheen/[0.015]",
+ "border border-sheen/[0.07]",
"shadow-[inset_0_1px_0_0_rgba(255,255,255,0.06),0_16px_40px_-20px_rgba(0,0,0,0.8)]",
className,
)}
diff --git a/jarvis/ui/web/frontend/src/components/board/CategoryUsage.tsx b/jarvis/ui/web/frontend/src/components/board/CategoryUsage.tsx
index 9cc89d25f9..979d5c89c9 100644
--- a/jarvis/ui/web/frontend/src/components/board/CategoryUsage.tsx
+++ b/jarvis/ui/web/frontend/src/components/board/CategoryUsage.tsx
@@ -50,7 +50,7 @@ export function CategoryUsage({ data }: { data: BoardCategories }) {
<div
className={cn(
"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg",
- "bg-white/[0.04] ring-1 ring-inset ring-white/[0.05]",
+ "bg-sheen/[0.04] ring-1 ring-inset ring-sheen/[0.05]",
)}
>
<Icon className={cn("h-4 w-4", meta.accent)} />
@@ -69,7 +69,7 @@ export function CategoryUsage({ data }: { data: BoardCategories }) {
</span>
</span>
</div>
- <div className="relative h-1.5 overflow-hidden rounded-full bg-white/[0.05]">
+ <div className="relative h-1.5 overflow-hidden rounded-full bg-sheen/[0.05]">
<div
className={cn(
"absolute inset-y-0 left-0 rounded-full transition-all duration-700",
diff --git a/jarvis/ui/web/frontend/src/components/board/PairDialog.tsx b/jarvis/ui/web/frontend/src/components/board/PairDialog.tsx
index bac79bc26f..4f80b0beec 100644
--- a/jarvis/ui/web/frontend/src/components/board/PairDialog.tsx
+++ b/jarvis/ui/web/frontend/src/components/board/PairDialog.tsx
@@ -32,7 +32,7 @@ export function PairDialog({ onClose }: PairDialogProps) {
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/50 backdrop-blur-sm"
onClick={onClose}
>
<div
diff --git a/jarvis/ui/web/frontend/src/components/board/ShareDialog.tsx b/jarvis/ui/web/frontend/src/components/board/ShareDialog.tsx
index 9781c1f55c..0fa82a82fe 100644
--- a/jarvis/ui/web/frontend/src/components/board/ShareDialog.tsx
+++ b/jarvis/ui/web/frontend/src/components/board/ShareDialog.tsx
@@ -165,9 +165,9 @@ export function ShareDialog({ open, onOpenChange, stats }: Props) {
return (
<Dialog.Root open={open} onOpenChange={onOpenChange}>
<Dialog.Portal>
- <Dialog.Overlay className="fixed inset-0 z-50 bg-black/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0" />
+ <Dialog.Overlay className="fixed inset-0 z-50 bg-scrim/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0" />
<Dialog.Content
- className="fixed left-1/2 top-1/2 z-50 w-[min(440px,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 rounded-2xl border border-white/[0.08] bg-card p-5 shadow-2xl data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95"
+ className="fixed left-1/2 top-1/2 z-50 w-[min(440px,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 rounded-2xl border border-sheen/[0.08] bg-card p-5 shadow-2xl data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95"
data-testid="share-dialog"
>
<div className="mb-3 flex items-start justify-between gap-3">
@@ -180,7 +180,7 @@ export function ShareDialog({ open, onOpenChange, stats }: Props) {
</Dialog.Description>
</div>
<Dialog.Close
- className="rounded-md p-1 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground"
+ className="rounded-md p-1 text-muted-foreground transition-colors hover:bg-sheen/[0.06] hover:text-foreground"
aria-label="Close"
>
<X className="h-4 w-4" />
@@ -189,7 +189,7 @@ export function ShareDialog({ open, onOpenChange, stats }: Props) {
{/* Scaled, non-captured preview */}
<div
- className="mx-auto mb-4 overflow-hidden rounded-xl border border-white/[0.06]"
+ className="mx-auto mb-4 overflow-hidden rounded-xl border border-sheen/[0.06]"
style={{ width: PREVIEW, height: PREVIEW }}
>
<div
@@ -223,7 +223,7 @@ export function ShareDialog({ open, onOpenChange, stats }: Props) {
<span className="mb-1 block text-[11px] text-muted-foreground">
{t("board_view.share.handle_label")}
</span>
- <div className="flex items-center rounded-lg border border-white/[0.08] bg-white/[0.03] px-2.5">
+ <div className="flex items-center rounded-lg border border-sheen/[0.08] bg-sheen/[0.03] px-2.5">
<span className="text-sm text-muted-foreground">@</span>
<input
value={handle}
@@ -303,7 +303,7 @@ function ActionButton({
"inline-flex flex-col items-center justify-center gap-1 rounded-lg border px-2 py-2.5 text-[11px] font-medium transition-colors",
primary
? "border-primary/40 bg-primary/[0.10] text-primary hover:bg-primary/[0.16]"
- : "border-white/[0.08] bg-white/[0.03] hover:border-primary/40 hover:bg-primary/[0.06]",
+ : "border-sheen/[0.08] bg-sheen/[0.03] hover:border-primary/40 hover:bg-primary/[0.06]",
disabled && "opacity-50",
)}
>
diff --git a/jarvis/ui/web/frontend/src/components/board/StoryComposer.tsx b/jarvis/ui/web/frontend/src/components/board/StoryComposer.tsx
index e8e3c02ba7..fda8059db5 100644
--- a/jarvis/ui/web/frontend/src/components/board/StoryComposer.tsx
+++ b/jarvis/ui/web/frontend/src/components/board/StoryComposer.tsx
@@ -20,7 +20,7 @@ export function StoryComposer({ onClose }: StoryComposerProps) {
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/50 backdrop-blur-sm"
onClick={onClose}
>
<div
diff --git a/jarvis/ui/web/frontend/src/components/board/WordsTrendChart.tsx b/jarvis/ui/web/frontend/src/components/board/WordsTrendChart.tsx
index 0cdd14469e..9e52a21590 100644
--- a/jarvis/ui/web/frontend/src/components/board/WordsTrendChart.tsx
+++ b/jarvis/ui/web/frontend/src/components/board/WordsTrendChart.tsx
@@ -121,7 +121,7 @@ function TrendTooltip(props: {
const you = payload.find((p) => p.dataKey === "you")?.value ?? 0;
const jarvis = payload.find((p) => p.dataKey === "jarvis")?.value ?? 0;
return (
- <div className="rounded-lg border border-white/10 bg-[#0c0c0c]/95 px-3 py-2 text-xs shadow-xl backdrop-blur">
+ <div className="rounded-lg border border-sheen/10 bg-[#0c0c0c]/95 px-3 py-2 text-xs shadow-xl backdrop-blur">
<div className="mb-1.5 font-medium text-foreground">{fmtFull(label)}</div>
<Row color={TREND_YOU} label={t("board_view.hero.you_spoke")} value={you} />
<Row color={TREND_JARVIS} label={t("board_view.hero.jarvis_spoke")} value={jarvis} />
diff --git a/jarvis/ui/web/frontend/src/components/docs/CodeBlock.tsx b/jarvis/ui/web/frontend/src/components/docs/CodeBlock.tsx
index db372a1820..ac0d87428e 100644
--- a/jarvis/ui/web/frontend/src/components/docs/CodeBlock.tsx
+++ b/jarvis/ui/web/frontend/src/components/docs/CodeBlock.tsx
@@ -15,9 +15,28 @@ import { useT } from "@/i18n";
* If the language isn't recognized, fall back to ``txt`` without highlighting.
*/
type ShikiHighlighterApi = {
- codeToHtml: (code: string, opts: { lang: string; theme: string }) => string;
+ codeToHtml: (
+ code: string,
+ opts: {
+ lang: string;
+ themes: { light: string; dark: string };
+ defaultColor: string;
+ },
+ ) => string;
};
+/**
+ * Both themes are baked into ONE highlight pass.
+ *
+ * Shiki's dual-theme mode writes the light colour into `color:` and the dark
+ * one into a `--shiki-dark` custom property on the same span; the rule in
+ * index.css picks whichever the app is currently in. That means switching the
+ * theme costs nothing — no re-highlight, no second Shiki download, no flash of
+ * unstyled code — which matters because these blocks appear inside long guides
+ * where re-rendering would jump the scroll position.
+ */
+const CODE_THEMES = { light: "github-light", dark: "github-dark-default" } as const;
+
const highlighterPromises = new Map<string, Promise<ShikiHighlighterApi>>();
const SUPPORTED_LANGS = [
@@ -48,7 +67,7 @@ async function loadHighlighter(language: string): Promise<ShikiHighlighterApi> {
if (cached) return cached;
const promise = import("shiki").then(async (shiki) => {
return await shiki.createHighlighter({
- themes: ["github-dark-default"],
+ themes: [CODE_THEMES.light, CODE_THEMES.dark],
langs: [language],
});
});
@@ -89,7 +108,8 @@ export function CodeBlock({ language, code }: CodeBlockProps) {
try {
const out = highlighter.codeToHtml(code, {
lang,
- theme: "github-dark-default",
+ themes: CODE_THEMES,
+ defaultColor: "light",
});
setHtml(out);
} catch {
@@ -116,7 +136,7 @@ export function CodeBlock({ language, code }: CodeBlockProps) {
};
return (
- <div className="not-prose group relative my-4 overflow-hidden rounded-md border border-border bg-[#0a0c10]">
+ <div className="not-prose group relative my-4 overflow-hidden rounded-md border border-border bg-muted/40">
{/* Header-Bar */}
<div className="flex items-center justify-between border-b border-border/40 bg-muted/20 px-3 py-1">
<span className="text-[10px] uppercase tracking-wider text-muted-foreground">
diff --git a/jarvis/ui/web/frontend/src/components/docs/DocsSearchModal.tsx b/jarvis/ui/web/frontend/src/components/docs/DocsSearchModal.tsx
index 0bd2f9c0f7..756679d8f6 100644
--- a/jarvis/ui/web/frontend/src/components/docs/DocsSearchModal.tsx
+++ b/jarvis/ui/web/frontend/src/components/docs/DocsSearchModal.tsx
@@ -44,7 +44,7 @@ export function DocsSearchModal({ open, onOpenChange, onSelect }: Props) {
return (
<Dialog.Root open={open} onOpenChange={onOpenChange}>
<Dialog.Portal>
- <Dialog.Overlay className="fixed inset-0 z-40 bg-black/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" />
+ <Dialog.Overlay className="fixed inset-0 z-40 bg-scrim/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" />
<Dialog.Content className="fixed left-1/2 top-[15%] z-50 w-[min(640px,calc(100vw-2rem))] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-card shadow-2xl data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none">
<Dialog.Title className="sr-only">{t("docs.search_modal_title")}</Dialog.Title>
<Dialog.Description className="sr-only">
diff --git a/jarvis/ui/web/frontend/src/components/missions/GlobalKillButton.tsx b/jarvis/ui/web/frontend/src/components/missions/GlobalKillButton.tsx
index 6e75ec1933..d2036bd6d0 100644
--- a/jarvis/ui/web/frontend/src/components/missions/GlobalKillButton.tsx
+++ b/jarvis/ui/web/frontend/src/components/missions/GlobalKillButton.tsx
@@ -52,7 +52,7 @@ export function GlobalKillButton() {
{open && (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm"
onClick={(e) => {
if (e.target === e.currentTarget) setOpen(false);
}}
diff --git a/jarvis/ui/web/frontend/src/components/missions/PtyTerminal.tsx b/jarvis/ui/web/frontend/src/components/missions/PtyTerminal.tsx
index ddf10d2da9..f23ef24738 100644
--- a/jarvis/ui/web/frontend/src/components/missions/PtyTerminal.tsx
+++ b/jarvis/ui/web/frontend/src/components/missions/PtyTerminal.tsx
@@ -20,6 +20,8 @@ import { SearchAddon } from "@xterm/addon-search";
import "@xterm/xterm/css/xterm.css";
import { AlertCircle, Terminal as TerminalIcon } from "lucide-react";
import { useT } from "@/i18n";
+import { useThemeValue } from "@/hooks/useTheme";
+import { PANE_CHROME, themeFor } from "../agentic/terminalThemes";
import { buildMissionSocketUrl, fetchMissionToken } from "@/lib/missionAuth";
import { TERMINAL_FONT_STACK, syncTerminalFont } from "@/lib/terminalFont";
import {
@@ -55,6 +57,12 @@ export function PtyTerminal({ workerId }: PtyTerminalProps) {
const pausedRef = useRef(false);
const [streamError, setStreamError] = useState<string | null>(null);
const [connected, setConnected] = useState(false);
+ const appearance = useThemeValue();
+ // Via a ref in the setup effect so a theme switch never re-runs it — that
+ // would drop the PTY socket and, worse, dispose a terminal the registry is
+ // still handing out to the next worker selection.
+ const appearanceRef = useRef(appearance);
+ appearanceRef.current = appearance;
const sendControl = useCallback(
(type: "pause" | "resume") => {
@@ -83,12 +91,10 @@ export function PtyTerminal({ workerId }: PtyTerminalProps) {
cursorBlink: false,
scrollback: 5000,
linkHandler: TERMINAL_OSC_LINK_HANDLER,
- theme: {
- background: "#0b0d10",
- foreground: "#e6e6e6",
- cursor: "#ffd60a",
- selectionBackground: "#3a4252",
- },
+ // Shared with the Agentic IDE panes: all 16 ANSI slots, re-derived per
+ // ground. A worker's diffs and dimmed hints are drawn with the "bright"
+ // row, which is unreadable on paper unless it was built for paper.
+ theme: themeFor(appearanceRef.current),
});
const fit = new FitAddon();
term.loadAddon(fit);
@@ -223,8 +229,18 @@ export function PtyTerminal({ workerId }: PtyTerminalProps) {
};
}, [workerId, sendControl, t]);
+ // Recolour in place on a theme switch — the buffer, the scrollback and the
+ // live socket all survive; only the palette is swapped.
+ useEffect(() => {
+ const term = termRef.current;
+ if (term) term.options.theme = themeFor(appearance);
+ }, [appearance]);
+
return (
- <div className="relative flex h-full w-full flex-col overflow-hidden rounded-md border border-border bg-[#0b0d10]">
+ <div
+ className="relative flex h-full w-full flex-col overflow-hidden rounded-md border border-border"
+ style={{ background: PANE_CHROME[appearance].shell }}
+ >
<header className="flex items-center justify-between gap-2 border-b border-border bg-card/40 px-3 py-2">
<div className="flex items-center gap-2 text-xs text-muted-foreground">
<TerminalIcon className="h-3.5 w-3.5 text-primary" />
diff --git a/jarvis/ui/web/frontend/src/components/onboarding/IntroVideoScreen.tsx b/jarvis/ui/web/frontend/src/components/onboarding/IntroVideoScreen.tsx
index 904e724f60..1088dc8c82 100644
--- a/jarvis/ui/web/frontend/src/components/onboarding/IntroVideoScreen.tsx
+++ b/jarvis/ui/web/frontend/src/components/onboarding/IntroVideoScreen.tsx
@@ -64,7 +64,7 @@ export function IntroVideoScreen({ onContinue }: { onContinue: () => void }) {
if (!img.src.endsWith("hqdefault.jpg")) img.src = THUMB_FALLBACK;
}}
/>
- <span className="absolute inset-0 flex items-center justify-center bg-black/25 transition-colors group-hover:bg-black/15">
+ <span className="absolute inset-0 flex items-center justify-center bg-scrim/25 transition-colors group-hover:bg-scrim/15">
<span className="flex h-16 w-16 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform group-hover:scale-110">
<Play className="h-7 w-7 translate-x-0.5 fill-current" />
</span>
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/ConnectorBrand.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/ConnectorBrand.tsx
index 313f9afa6b..7ece41c398 100644
--- a/jarvis/ui/web/frontend/src/components/ultrawiki/ConnectorBrand.tsx
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/ConnectorBrand.tsx
@@ -100,7 +100,7 @@ export function ConnectorBrandMark({
// carry the brand); our neutral icons and monograms sit on the card's
// own surface, so a built-in never masquerades as a vendor tile.
tier === "asset"
- ? "border-white/10 bg-white/[0.07]"
+ ? "border-sheen/10 bg-sheen/[0.07]"
: "border-border/60 bg-secondary/40",
className,
)}
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/ExplorePanel.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/ExplorePanel.tsx
index 0a37c8a3fa..45817d93f7 100644
--- a/jarvis/ui/web/frontend/src/components/ultrawiki/ExplorePanel.tsx
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/ExplorePanel.tsx
@@ -351,7 +351,7 @@ function EntityRow({
{/* The signature of this view: where in your history this topic lived.
Width is its lifetime, position is when, warmth is how recent. */}
<span
- className="mt-1 block h-[3px] w-full rounded-full bg-white/[0.06]"
+ className="mt-1 block h-[3px] w-full rounded-full bg-sheen/[0.06]"
aria-hidden
>
<span
diff --git a/jarvis/ui/web/frontend/src/components/wiki/WikiSearch.tsx b/jarvis/ui/web/frontend/src/components/wiki/WikiSearch.tsx
index 972b8d3dba..25cd836ebd 100644
--- a/jarvis/ui/web/frontend/src/components/wiki/WikiSearch.tsx
+++ b/jarvis/ui/web/frontend/src/components/wiki/WikiSearch.tsx
@@ -245,7 +245,7 @@ export const WikiSearch = forwardRef<WikiSearchHandle, WikiSearchProps>(function
shouldFilter={false}
data-testid="wiki-search-dialog"
contentClassName="fixed left-1/2 top-[20vh] z-50 w-[min(640px,90vw)] -translate-x-1/2 rounded-xl border border-border bg-background shadow-2xl"
- overlayClassName="fixed inset-0 z-40 bg-black/40 backdrop-blur-sm"
+ overlayClassName="fixed inset-0 z-40 bg-scrim/40 backdrop-blur-sm"
>
{/* Screen-reader-only title and description — required by Radix Dialog's
a11y contract; visually hidden so the palette UI stays clean. */}
diff --git a/jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.tsx b/jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.tsx
index 56c1375aaa..7b2a807ecf 100644
--- a/jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.tsx
+++ b/jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.tsx
@@ -14,6 +14,8 @@ import { WebLinksAddon } from "@xterm/addon-web-links";
import "@xterm/xterm/css/xterm.css";
import { Terminal as TerminalIcon, AlertCircle } from "lucide-react";
import { installNewlineBridge } from "../agentic/terminalNewline";
+import { PANE_CHROME, themeFor } from "../agentic/terminalThemes";
+import { useThemeValue } from "@/hooks/useTheme";
import { TERMINAL_FONT_STACK, syncTerminalFont } from "@/lib/terminalFont";
import {
activateTerminalLink,
@@ -48,8 +50,15 @@ export function WorkspaceTerminal({
title,
}: WorkspaceTerminalProps) {
const containerRef = useRef<HTMLDivElement | null>(null);
+ const termRef = useRef<Terminal | null>(null);
const [status, setStatus] = useState<Status>("connecting");
const [error, setError] = useState<string | null>(null);
+ const appearance = useThemeValue();
+ // Read through a ref inside the setup effect: the theme must NOT be a
+ // dependency there, or switching it would tear down the PTY WebSocket and
+ // restart the agent. Recolouring happens in its own effect below.
+ const appearanceRef = useRef(appearance);
+ appearanceRef.current = appearance;
useEffect(() => {
const container = containerRef.current;
@@ -63,13 +72,12 @@ export function WorkspaceTerminal({
cursorBlink: true,
scrollback: 5000,
linkHandler: TERMINAL_OSC_LINK_HANDLER,
- theme: {
- background: "#0b0d10",
- foreground: "#e6e6e6",
- cursor: "#ffd60a",
- selectionBackground: "#3a4252",
- },
+ // The full 16-slot palette rather than four values, and the same one the
+ // Agentic IDE panes use — a coding agent's ANSI output is only readable
+ // if the "bright" row was re-derived for the ground it lands on.
+ theme: themeFor(appearanceRef.current),
});
+ termRef.current = term;
const fit = new FitAddon();
term.loadAddon(fit);
term.loadAddon(new WebLinksAddon(activateTerminalLink));
@@ -193,11 +201,22 @@ export function WorkspaceTerminal({
/* ignore */
}
term.dispose();
+ termRef.current = null;
};
}, [paneKey, agentName, installName]);
+ // Recolour in place on a theme switch. xterm repaints from the new palette
+ // without touching the buffer, so scrollback and the live PTY both survive.
+ useEffect(() => {
+ const term = termRef.current;
+ if (term) term.options.theme = themeFor(appearance);
+ }, [appearance]);
+
return (
- <div className="relative flex h-full w-full flex-col overflow-hidden rounded-lg border border-border bg-[#0b0d10]">
+ <div
+ className="relative flex h-full w-full flex-col overflow-hidden rounded-lg border border-border"
+ style={{ background: PANE_CHROME[appearance].shell }}
+ >
<header className="flex items-center justify-between gap-2 border-b border-border bg-card/40 px-3 py-1.5">
<div className="flex items-center gap-2 text-xs text-muted-foreground">
<TerminalIcon className="h-3.5 w-3.5 text-primary" />
diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.css
index 5d87007fd3..7d2fb260b9 100644
--- a/jarvis/ui/web/frontend/src/index.css
+++ b/jarvis/ui/web/frontend/src/index.css
@@ -174,6 +174,23 @@
display: none;
}
+/* Shiki dual-theme switch — PLAIN (non-@layer) CSS, same reason as the rules
+ below: `.shiki` markup is produced at runtime from highlighted strings and
+ never appears in the source, so a @layer rule for it would be purged.
+
+ CodeBlock highlights once with both themes; Shiki writes the light colour
+ into `color:` and the dark one into `--shiki-dark` on every span. These two
+ rules are what make the dark half take over. Without them, switching the
+ theme would leave every code block permanently in light colours. */
+.dark .shiki,
+.dark .shiki span {
+ color: var(--shiki-dark) !important;
+ background-color: var(--shiki-dark-bg) !important;
+ font-style: var(--shiki-dark-font-style) !important;
+ font-weight: var(--shiki-dark-font-weight) !important;
+ text-decoration: var(--shiki-dark-text-decoration) !important;
+}
+
/* xterm.js viewport scrollbar — PLAIN (non-@layer) CSS on purpose. Tailwind
tree-shakes `@layer utilities` by class usage, and `.xterm-viewport` is
created by xterm.js at runtime (it never appears in the source), so a rule
diff --git a/jarvis/ui/web/frontend/src/views/BoardView.tsx b/jarvis/ui/web/frontend/src/views/BoardView.tsx
index 2015ed8884..27733694d0 100644
--- a/jarvis/ui/web/frontend/src/views/BoardView.tsx
+++ b/jarvis/ui/web/frontend/src/views/BoardView.tsx
@@ -82,7 +82,7 @@ export function BoardView() {
onClick={() => setShareOpen(true)}
disabled={loading || !s}
className={cn(
- "inline-flex items-center gap-2 rounded-lg border border-white/[0.08] bg-white/[0.03] px-3 py-1.5 text-xs font-medium transition-colors",
+ "inline-flex items-center gap-2 rounded-lg border border-sheen/[0.08] bg-sheen/[0.03] px-3 py-1.5 text-xs font-medium transition-colors",
"hover:border-primary/40 hover:bg-primary/[0.06]",
(loading || !s) && "opacity-50",
)}
@@ -97,7 +97,7 @@ export function BoardView() {
onClick={() => refresh.mutate()}
disabled={refresh.isPending}
className={cn(
- "inline-flex items-center gap-2 rounded-lg border border-white/[0.08] bg-white/[0.03] px-3 py-1.5 text-xs font-medium transition-colors",
+ "inline-flex items-center gap-2 rounded-lg border border-sheen/[0.08] bg-sheen/[0.03] px-3 py-1.5 text-xs font-medium transition-colors",
"hover:border-primary/40 hover:bg-primary/[0.06]",
refresh.isPending && "opacity-60",
)}
@@ -216,7 +216,7 @@ export function BoardView() {
</span>
)}
{longest > 0 && (
- <span className="rounded-full border border-white/[0.08] bg-white/[0.03] px-2.5 py-1 text-[11px] text-muted-foreground">
+ <span className="rounded-full border border-sheen/[0.08] bg-sheen/[0.03] px-2.5 py-1 text-[11px] text-muted-foreground">
{plural(t, "board_view.longest_streak", longest)}
</span>
)}
@@ -260,9 +260,9 @@ export function BoardView() {
// Per-index hairline dividers for a 2-col (mobile) / 4-col (desktop) grid.
const DIVIDERS = [
"",
- "border-l border-white/[0.06]",
- "border-t border-white/[0.06] lg:border-t-0 lg:border-l",
- "border-l border-t border-white/[0.06] lg:border-t-0",
+ "border-l border-sheen/[0.06]",
+ "border-t border-sheen/[0.06] lg:border-t-0 lg:border-l",
+ "border-l border-t border-sheen/[0.06] lg:border-t-0",
];
function Metric({
@@ -308,7 +308,7 @@ function Dot() {
}
function Skeleton({ className }: { className?: string }) {
- return <div className={cn("w-full animate-pulse rounded-lg bg-white/[0.04]", className)} />;
+ return <div className={cn("w-full animate-pulse rounded-lg bg-sheen/[0.04]", className)} />;
}
function plural(t: (k: string) => string, baseKey: string, n: number): string {
diff --git a/jarvis/ui/web/frontend/src/views/ClisView.tsx b/jarvis/ui/web/frontend/src/views/ClisView.tsx
index 19001afe5f..57efa93f85 100644
--- a/jarvis/ui/web/frontend/src/views/ClisView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ClisView.tsx
@@ -704,7 +704,7 @@ function ApiKeyDialog({
const [error, setError] = useState<string | null>(null);
return (
- <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm">
+ <div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm">
<div className="flex w-full max-w-md flex-col rounded-xl border border-border bg-card shadow-lg">
<div className="flex items-start justify-between gap-4 border-b border-border p-5">
<div className="min-w-0 flex-1">
@@ -806,7 +806,7 @@ function InstallDialog({
const selectedMethod = detail.install_methods.find((m) => m.manager === selected);
return (
- <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm">
+ <div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm">
<div className="flex w-full max-w-lg flex-col rounded-xl border border-border bg-card shadow-lg">
<div className="flex items-start justify-between gap-4 border-b border-border p-5">
<div className="min-w-0 flex-1">
@@ -984,7 +984,7 @@ function CustomCliWizard({ onClose }: { onClose: () => void }) {
};
return (
- <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm">
+ <div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm">
<div className="flex w-full max-w-2xl flex-col rounded-xl border border-border bg-card shadow-lg">
<div className="flex items-start justify-between gap-4 border-b border-border p-5">
<div className="min-w-0 flex-1">
@@ -1197,7 +1197,7 @@ function UsageDrawer({ name, onClose }: { name: string; onClose: () => void }) {
const pushToast = useEventStore((s) => s.pushToast);
return (
- <div className="fixed inset-0 z-50 flex items-stretch justify-end bg-black/60 backdrop-blur-sm">
+ <div className="fixed inset-0 z-50 flex items-stretch justify-end bg-scrim/60 backdrop-blur-sm">
<div className="flex w-[520px] flex-col border-l border-border bg-card shadow-2xl">
<div className="flex items-center justify-between border-b border-border px-5 py-3">
<div className="min-w-0 flex-1">
diff --git a/jarvis/ui/web/frontend/src/views/ConductorView.tsx b/jarvis/ui/web/frontend/src/views/ConductorView.tsx
index 0ec7ba0377..396c77da92 100644
--- a/jarvis/ui/web/frontend/src/views/ConductorView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ConductorView.tsx
@@ -510,7 +510,7 @@ function JobEditorModal({ onClose }: { onClose: () => void }) {
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm"
onClick={onClose}
>
<div
diff --git a/jarvis/ui/web/frontend/src/views/DictionaryView.tsx b/jarvis/ui/web/frontend/src/views/DictionaryView.tsx
index 287d9fa943..166f253062 100644
--- a/jarvis/ui/web/frontend/src/views/DictionaryView.tsx
+++ b/jarvis/ui/web/frontend/src/views/DictionaryView.tsx
@@ -274,7 +274,7 @@ function DictionaryEntryDialog({
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/50 backdrop-blur-sm"
onClick={onClose}
>
<div
diff --git a/jarvis/ui/web/frontend/src/views/McpsView.tsx b/jarvis/ui/web/frontend/src/views/McpsView.tsx
index a4228039cf..934b5d9bfc 100644
--- a/jarvis/ui/web/frontend/src/views/McpsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/McpsView.tsx
@@ -374,7 +374,7 @@ function ConfigModal({ onClose }: { onClose: () => void }) {
};
return (
- <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm">
+ <div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm">
<div className="flex w-full max-w-3xl flex-col rounded-xl border border-border bg-card shadow-[0_0_60px_rgba(255,214,10,0.1)]">
<div className="flex items-start justify-between gap-4 border-b border-border p-6">
<div className="min-w-0 flex-1">
diff --git a/jarvis/ui/web/frontend/src/views/PluginsView.tsx b/jarvis/ui/web/frontend/src/views/PluginsView.tsx
index e0dc36010b..854ca96555 100644
--- a/jarvis/ui/web/frontend/src/views/PluginsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/PluginsView.tsx
@@ -1075,7 +1075,7 @@ function CarouselBanner() {
"h-1.5 w-1.5 rounded-full transition-all duration-300",
active === i
? "scale-125 bg-primary shadow-[0_0_8px_rgba(255,214,10,0.7)]"
- : "bg-white/30 hover:bg-white/60",
+ : "bg-sheen/30 hover:bg-sheen/60",
)}
/>
))}
@@ -1098,7 +1098,7 @@ function CarouselSlideView({ slide, active }: { slide: CarouselSlide; active: bo
>
<div
className={cn(
- "flex items-center gap-2 rounded-full border bg-black/55 px-4 py-2 text-xs shadow-[0_8px_24px_rgba(0,0,0,0.45)] backdrop-blur-md",
+ "flex items-center gap-2 rounded-full border bg-scrim/55 px-4 py-2 text-xs shadow-[0_8px_24px_rgba(0,0,0,0.45)] backdrop-blur-md",
slide.accent,
)}
>
@@ -1221,7 +1221,7 @@ export function BrandTile({ plugin }: { plugin: Plugin }) {
// own logo is near-black ship a light variant for exactly this case —
// see LOGOS.md; without one, a dark mark would vanish here.
fullColour && !showMonogram
- ? "border-white/10 bg-white/[0.07]"
+ ? "border-sheen/10 bg-sheen/[0.07]"
: "border-border/60",
)}
style={fullColour && !showMonogram ? undefined : { backgroundColor: tile }}
@@ -1606,7 +1606,7 @@ function OAuthRedirectDialog({
<div
role="dialog"
aria-modal="true"
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/70 backdrop-blur-sm"
onClick={(e) => {
if (e.target === e.currentTarget) onClose();
}}
@@ -1786,7 +1786,7 @@ function DeviceCodeDialog({
<div
role="dialog"
aria-modal="true"
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/70 backdrop-blur-sm"
onClick={(e) => {
if (e.target === e.currentTarget) onClose();
}}
@@ -1976,7 +1976,7 @@ export function PkceConnectDialog({
role="dialog"
aria-modal="true"
aria-labelledby="pkce-connect-title"
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/70 backdrop-blur-sm"
onClick={(e) => {
if (e.target === e.currentTarget && !busy) onClose();
}}
@@ -2153,7 +2153,7 @@ function DisconnectConfirmDialog({
role="dialog"
aria-modal="true"
aria-labelledby="disconnect-dialog-title"
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/70 backdrop-blur-sm"
onClick={(e) => {
if (e.target === e.currentTarget && !isPending) onCancel();
}}
@@ -2296,7 +2296,7 @@ export function PatConnectDialog({
role="dialog"
aria-modal="true"
aria-labelledby="pat-dialog-title"
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/70 backdrop-blur-sm"
onClick={(e) => {
if (e.target === e.currentTarget && !isPending) onClose();
}}
diff --git a/jarvis/ui/web/frontend/src/views/ProfileView.tsx b/jarvis/ui/web/frontend/src/views/ProfileView.tsx
index c95804457f..c2de5e3958 100644
--- a/jarvis/ui/web/frontend/src/views/ProfileView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ProfileView.tsx
@@ -363,7 +363,7 @@ function AvatarBlock({ name, hasAvatar }: { name: string | null; hasAvatar: bool
disabled={busy}
title={hasAvatar ? t("profile_view.avatar_change") : t("profile_view.avatar_upload")}
aria-label={hasAvatar ? t("profile_view.avatar_change") : t("profile_view.avatar_upload")}
- className="group relative flex h-[4.5rem] w-[4.5rem] items-center justify-center overflow-hidden rounded-full border border-white/[0.09] bg-white/[0.04] outline-none transition-colors hover:border-primary/50 focus-visible:border-primary"
+ className="group relative flex h-[4.5rem] w-[4.5rem] items-center justify-center overflow-hidden rounded-full border border-sheen/[0.09] bg-sheen/[0.04] outline-none transition-colors hover:border-primary/50 focus-visible:border-primary"
>
{hasAvatar ? (
<img
@@ -398,7 +398,7 @@ function AvatarBlock({ name, hasAvatar }: { name: string | null; hasAvatar: bool
type="button"
onClick={openPicker}
disabled={busy}
- className="rounded-full border border-white/[0.08] bg-white/[0.03] px-2.5 py-1 text-[10px] font-medium text-muted-foreground transition-colors hover:border-primary/40 hover:text-primary"
+ className="rounded-full border border-sheen/[0.08] bg-sheen/[0.03] px-2.5 py-1 text-[10px] font-medium text-muted-foreground transition-colors hover:border-primary/40 hover:text-primary"
>
{hasAvatar ? t("profile_view.avatar_change") : t("profile_view.avatar_upload")}
</button>
@@ -409,7 +409,7 @@ function AvatarBlock({ name, hasAvatar }: { name: string | null; hasAvatar: bool
disabled={busy}
title={t("profile_view.avatar_remove")}
aria-label={t("profile_view.avatar_remove")}
- className="rounded-full border border-white/[0.08] bg-white/[0.03] p-1.5 text-muted-foreground transition-colors hover:border-destructive/40 hover:text-destructive"
+ className="rounded-full border border-sheen/[0.08] bg-sheen/[0.03] p-1.5 text-muted-foreground transition-colors hover:border-destructive/40 hover:text-destructive"
>
<Trash2 className="h-3 w-3" />
</button>
@@ -462,7 +462,7 @@ function AskCard({ meta }: { meta: Record<string, unknown> }) {
type="button"
data-testid="ask-next"
onClick={() => setIdx((i) => i + 1)}
- className="inline-flex items-center gap-1 rounded-full border border-white/[0.08] bg-white/[0.03] px-3 py-1.5 text-xs font-medium transition-colors hover:border-primary/40 hover:bg-primary/[0.06]"
+ className="inline-flex items-center gap-1 rounded-full border border-sheen/[0.08] bg-sheen/[0.03] px-3 py-1.5 text-xs font-medium transition-colors hover:border-primary/40 hover:bg-primary/[0.06]"
>
{t("profile_view.ask_next")}
<ChevronRight className="h-3.5 w-3.5" />
@@ -526,7 +526,7 @@ function IconBtn({
? "text-primary hover:bg-primary/10"
: tone === "danger"
? "text-muted-foreground hover:bg-destructive/10 hover:text-destructive"
- : "text-muted-foreground hover:bg-white/[0.06] hover:text-foreground";
+ : "text-muted-foreground hover:bg-sheen/[0.06] hover:text-foreground";
return (
<button
type="button"
@@ -612,7 +612,7 @@ function EditableFieldRow({
// ------------------------------------------------------------------ display
if (!editing) {
return (
- <div className="group flex items-baseline justify-between gap-4 border-b border-white/[0.05] py-2 last:border-b-0">
+ <div className="group flex items-baseline justify-between gap-4 border-b border-sheen/[0.05] py-2 last:border-b-0">
<dt className={cn("shrink-0 text-xs", empty ? "text-muted-foreground/60" : "text-muted-foreground")}>
{label}
</dt>
@@ -622,7 +622,7 @@ function EditableFieldRow({
{(value as unknown[]).map((item) => (
<span
key={String(item)}
- className="rounded-full border border-white/[0.08] bg-white/[0.04] px-2 py-0.5 text-xs font-medium"
+ className="rounded-full border border-sheen/[0.08] bg-sheen/[0.04] px-2 py-0.5 text-xs font-medium"
>
{String(item)}
</span>
@@ -657,7 +657,7 @@ function EditableFieldRow({
// ------------------------------------------------------------------- editing
return (
- <div className="group flex items-baseline justify-between gap-4 border-b border-white/[0.05] py-2 last:border-b-0">
+ <div className="group flex items-baseline justify-between gap-4 border-b border-sheen/[0.05] py-2 last:border-b-0">
<dt className="shrink-0 text-xs text-muted-foreground">{label}</dt>
<dd className="flex min-w-0 max-w-[72%] flex-col items-end gap-1.5">
{kind === "bool" ? (
@@ -672,7 +672,7 @@ function EditableFieldRow({
"rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors disabled:opacity-40",
value === b
? "border-primary/50 bg-primary/[0.12] text-primary"
- : "border-white/[0.08] bg-white/[0.03] text-muted-foreground hover:border-primary/40",
+ : "border-sheen/[0.08] bg-sheen/[0.03] text-muted-foreground hover:border-primary/40",
)}
>
{b ? t("profile_view.value_yes") : t("profile_view.value_no")}
@@ -690,7 +690,7 @@ function EditableFieldRow({
{(value as unknown[]).map((item) => (
<span
key={String(item)}
- className="inline-flex items-center gap-1 rounded-full border border-white/[0.1] bg-white/[0.05] py-0.5 pl-2 pr-1 text-xs font-medium"
+ className="inline-flex items-center gap-1 rounded-full border border-sheen/[0.1] bg-sheen/[0.05] py-0.5 pl-2 pr-1 text-xs font-medium"
>
{String(item)}
<button
@@ -831,7 +831,7 @@ function ErrorState({ error, onRetry }: { error: Error; onRetry: () => void }) {
return (
<div className="flex flex-1 items-center justify-center p-8">
<BoardCard glow className="max-w-md p-8 text-center">
- <div className="mx-auto mb-5 flex h-14 w-14 items-center justify-center rounded-full border border-white/[0.08] bg-white/[0.04]">
+ <div className="mx-auto mb-5 flex h-14 w-14 items-center justify-center rounded-full border border-sheen/[0.08] bg-sheen/[0.04]">
<UserCircle2 className="h-6 w-6 text-primary" />
</div>
<h3 className="font-display text-lg font-semibold tracking-tight">
@@ -934,7 +934,7 @@ function PersonRow({
onClick={onClick}
className={cn(
"flex w-full items-center gap-3 rounded-xl px-2.5 py-2.5 text-left transition-colors",
- active ? "bg-primary/[0.07]" : "hover:bg-white/[0.04]",
+ active ? "bg-primary/[0.07]" : "hover:bg-sheen/[0.04]",
)}
>
<span
@@ -942,7 +942,7 @@ function PersonRow({
"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border text-xs font-semibold transition-colors",
active
? "border-primary/40 bg-primary/15 text-primary"
- : "border-white/[0.08] bg-white/[0.05] text-foreground/80",
+ : "border-sheen/[0.08] bg-sheen/[0.05] text-foreground/80",
)}
>
{initials(person.name)}
@@ -957,7 +957,7 @@ function PersonRow({
)}
</span>
</span>
- <span className="shrink-0 rounded-full border border-white/[0.08] bg-white/[0.03] px-2 py-0.5 text-[10px] text-muted-foreground">
+ <span className="shrink-0 rounded-full border border-sheen/[0.08] bg-sheen/[0.03] px-2 py-0.5 text-[10px] text-muted-foreground">
{person.relationship}
</span>
<ChevronRight
@@ -1009,7 +1009,7 @@ function PersonDetail({
</Button>
</div>
- <dl className="space-y-3 border-t border-white/[0.06] pt-4 text-xs">
+ <dl className="space-y-3 border-t border-sheen/[0.06] pt-4 text-xs">
<div className="flex items-baseline justify-between gap-3">
<dt className="text-muted-foreground">{t("profile_view.person_relationship")}</dt>
<dd className="font-medium text-foreground">{person.relationship}</dd>
@@ -1032,7 +1032,7 @@ function PersonDetail({
</div>
</dl>
- <p className="mt-4 flex items-start gap-2 rounded-xl bg-white/[0.03] p-2.5 text-[10px] leading-relaxed text-muted-foreground">
+ <p className="mt-4 flex items-start gap-2 rounded-xl bg-sheen/[0.03] p-2.5 text-[10px] leading-relaxed text-muted-foreground">
<Inbox className="mt-0.5 h-3 w-3 shrink-0" />
{t("profile_view.person_file_hint").replace("{0}", person.slug)}
</p>
@@ -1185,7 +1185,7 @@ function EmptyHint({
}) {
return (
<div data-testid={testId} className="mt-2 flex items-center gap-3.5 py-2">
- <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-white/[0.07] bg-white/[0.03]">
+ <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-sheen/[0.07] bg-sheen/[0.03]">
<Icon className="h-4.5 w-4.5 h-[18px] w-[18px] text-muted-foreground" />
</div>
<div className="min-w-0 flex-1">
@@ -1213,7 +1213,7 @@ function ReviewRow({
conf >= 0.7 ? "text-emerald-400" : conf >= 0.5 ? "text-amber-400" : "text-muted-foreground";
return (
- <li className="rounded-xl border border-white/[0.06] bg-white/[0.02] p-4 transition-colors hover:border-primary/25">
+ <li className="rounded-xl border border-sheen/[0.06] bg-sheen/[0.02] p-4 transition-colors hover:border-primary/25">
<div className="flex items-start justify-between gap-4">
<div className="min-w-0 flex-1 space-y-2">
{candidate.evidence && (
@@ -1475,12 +1475,12 @@ function SourceCard() {
{data && (
<div
className={cn(
- "overflow-hidden rounded-xl border bg-black/30 transition-shadow",
- editing ? "border-primary/40" : "border-white/[0.06]",
+ "overflow-hidden rounded-xl border bg-scrim/30 transition-shadow",
+ editing ? "border-primary/40" : "border-sheen/[0.06]",
isPulsing && !editing && "ring-1 ring-emerald-500/40 shadow-[0_0_20px_rgba(16,185,129,0.15)]",
)}
>
- <div className="flex items-center gap-2.5 border-b border-white/[0.05] bg-white/[0.02] px-3.5 py-2.5">
+ <div className="flex items-center gap-2.5 border-b border-sheen/[0.05] bg-sheen/[0.02] px-3.5 py-2.5">
<FileText className="h-3.5 w-3.5 text-primary" />
<span className="truncate font-mono text-[10px] text-muted-foreground">{data.path}</span>
<span className="ml-auto font-mono text-[10px] text-muted-foreground/50">
diff --git a/jarvis/ui/web/frontend/src/views/SettingsView.tsx b/jarvis/ui/web/frontend/src/views/SettingsView.tsx
index ab3a777804..b2d96ddd77 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsView.tsx
@@ -234,7 +234,7 @@ function LanguageDropdown({
{open && (
<ul
role="listbox"
- className="absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-primary/40 bg-card shadow-lg shadow-black/50"
+ className="absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-primary/40 bg-card shadow-lg shadow-scrim/50"
>
{options.map((code) => {
const active = code === value;
diff --git a/jarvis/ui/web/frontend/src/views/SkillCreateDialog.tsx b/jarvis/ui/web/frontend/src/views/SkillCreateDialog.tsx
index 091f61f0c1..02d571977e 100644
--- a/jarvis/ui/web/frontend/src/views/SkillCreateDialog.tsx
+++ b/jarvis/ui/web/frontend/src/views/SkillCreateDialog.tsx
@@ -175,7 +175,7 @@ export function SkillCreateDialog({
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/70 p-4"
onClick={(e) => {
if (e.target === e.currentTarget) onClose();
}}
diff --git a/jarvis/ui/web/frontend/src/views/SkillFinderDialog.tsx b/jarvis/ui/web/frontend/src/views/SkillFinderDialog.tsx
index 01c2c66e89..fd5839b3d9 100644
--- a/jarvis/ui/web/frontend/src/views/SkillFinderDialog.tsx
+++ b/jarvis/ui/web/frontend/src/views/SkillFinderDialog.tsx
@@ -107,7 +107,7 @@ export function SkillFinderDialog({ open, onClose }: SkillFinderDialogProps) {
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/70 p-4"
onClick={(e) => {
if (e.target === e.currentTarget) onClose();
}}
diff --git a/jarvis/ui/web/frontend/src/views/SkillsView.tsx b/jarvis/ui/web/frontend/src/views/SkillsView.tsx
index 0dd5afb8b5..fdc130dceb 100644
--- a/jarvis/ui/web/frontend/src/views/SkillsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/SkillsView.tsx
@@ -774,7 +774,7 @@ function BulkDeleteConfirmDialog({
const t = useT();
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/60"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60"
role="dialog"
aria-label={t("skills_view.bulk_delete_title")}
>
@@ -829,7 +829,7 @@ function DeleteConfirmDialog({
const t = useT();
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/60"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60"
role="dialog"
aria-label={t("skills_view.delete_title")}
>
@@ -1110,7 +1110,7 @@ function AdminPassDialog({
}) {
const t = useT();
return (
- <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60">
+ <div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60">
<div className="w-[400px] rounded-lg border border-border bg-card p-6 shadow-xl">
<h3 className="flex items-center gap-2 text-base font-semibold">
<Lock className="h-4 w-4" />
diff --git a/jarvis/ui/web/frontend/src/views/contacts/ContactEditDialog.tsx b/jarvis/ui/web/frontend/src/views/contacts/ContactEditDialog.tsx
index 3c3779a080..f1069f8528 100644
--- a/jarvis/ui/web/frontend/src/views/contacts/ContactEditDialog.tsx
+++ b/jarvis/ui/web/frontend/src/views/contacts/ContactEditDialog.tsx
@@ -85,7 +85,7 @@ export function ContactEditDialog({
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/50 backdrop-blur-sm"
onClick={onClose}
>
<div
diff --git a/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx b/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx
index d9795bb2ac..bebfe48ec2 100644
--- a/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx
@@ -186,7 +186,7 @@ export function ContactsView() {
{confirmingDelete && selected && (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/50 backdrop-blur-sm"
onClick={() => setConfirmingDelete(false)}
>
<div
diff --git a/jarvis/ui/web/frontend/src/views/settings/JarvisApiGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/JarvisApiGroup.tsx
index f143b6e7ac..d58ff0ccf3 100644
--- a/jarvis/ui/web/frontend/src/views/settings/JarvisApiGroup.tsx
+++ b/jarvis/ui/web/frontend/src/views/settings/JarvisApiGroup.tsx
@@ -298,7 +298,7 @@ export function JarvisApiGroup() {
{confirmLock && (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm"
onClick={(e) => {
if (e.target === e.currentTarget) setConfirmLock(false);
}}
@@ -354,7 +354,7 @@ export function JarvisApiGroup() {
{confirmRotate && (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm"
onClick={(e) => {
if (e.target === e.currentTarget) setConfirmRotate(false);
}}
diff --git a/jarvis/ui/web/frontend/src/views/socials/BrandIcon.tsx b/jarvis/ui/web/frontend/src/views/socials/BrandIcon.tsx
index 2e7b2f8bc5..a4188a496f 100644
--- a/jarvis/ui/web/frontend/src/views/socials/BrandIcon.tsx
+++ b/jarvis/ui/web/frontend/src/views/socials/BrandIcon.tsx
@@ -28,7 +28,7 @@ export function BrandIcon({
return (
<div
className={cn(
- "flex shrink-0 items-center justify-center rounded-xl ring-1 ring-white/20",
+ "flex shrink-0 items-center justify-center rounded-xl ring-1 ring-sheen/20",
className,
)}
style={{ width: size, height: size, backgroundColor: "#3f3f46" }}
@@ -41,7 +41,7 @@ export function BrandIcon({
return (
<div
className={cn(
- "flex shrink-0 items-center justify-center rounded-xl ring-1 ring-white/20",
+ "flex shrink-0 items-center justify-center rounded-xl ring-1 ring-sheen/20",
className,
)}
style={{ width: size, height: size, backgroundColor: brand.hex }}
diff --git a/jarvis/ui/web/frontend/src/views/sub-agents/DepartureBoard.tsx b/jarvis/ui/web/frontend/src/views/sub-agents/DepartureBoard.tsx
index 59b377871a..a1d614f04c 100644
--- a/jarvis/ui/web/frontend/src/views/sub-agents/DepartureBoard.tsx
+++ b/jarvis/ui/web/frontend/src/views/sub-agents/DepartureBoard.tsx
@@ -188,7 +188,7 @@ export function DepartureBoard({ agents = [], snapshotError = null, health = nul
</div>
)}
- <div className="min-h-0 flex-1 overflow-auto rounded-lg border border-zinc-800/80 bg-black/35 scrollbar-jarvis">
+ <div className="min-h-0 flex-1 overflow-auto rounded-lg border border-zinc-800/80 bg-scrim/35 scrollbar-jarvis">
<div className="min-w-[1040px]">
<BoardHeader />
{sortedAgents.length === 0 ? (
@@ -336,7 +336,7 @@ function AgentRow({
{expanded && hasDrilldown && (
<div className="border-t border-zinc-900/80 bg-zinc-950/55 px-4 pb-4 pt-3">
<div className="grid grid-cols-[1.35fr_1fr] gap-4">
- <div className="min-w-0 rounded-md border border-zinc-800/70 bg-black/30">
+ <div className="min-w-0 rounded-md border border-zinc-800/70 bg-scrim/30">
<div className="flex items-center gap-2 border-b border-zinc-900 px-3 py-2 font-mono text-[10px] uppercase tracking-[0.18em] text-zinc-500">
<TerminalSquare className="h-3.5 w-3.5 text-primary" />
Tool calls
@@ -352,7 +352,7 @@ function AgentRow({
)}
</div>
- <div className="min-w-0 rounded-md border border-zinc-800/70 bg-black/30">
+ <div className="min-w-0 rounded-md border border-zinc-800/70 bg-scrim/30">
<div className="border-b border-zinc-900 px-3 py-2 font-mono text-[10px] uppercase tracking-[0.18em] text-zinc-500">
{agentBrand(assistantName)} details
</div>
diff --git a/jarvis/ui/web/frontend/src/views/tasks/TaskCreateDialog.tsx b/jarvis/ui/web/frontend/src/views/tasks/TaskCreateDialog.tsx
index 08dac2830b..7f8eaf497b 100644
--- a/jarvis/ui/web/frontend/src/views/tasks/TaskCreateDialog.tsx
+++ b/jarvis/ui/web/frontend/src/views/tasks/TaskCreateDialog.tsx
@@ -221,7 +221,7 @@ export function TaskCreateDialog({ onClose }: { onClose: () => void }) {
return (
<div
- className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4 backdrop-blur-sm"
+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 p-4 backdrop-blur-sm"
onClick={onClose}
>
<div
diff --git a/jarvis/ui/web/frontend/tailwind.config.ts b/jarvis/ui/web/frontend/tailwind.config.ts
index 01575627ab..11b79a5198 100644
--- a/jarvis/ui/web/frontend/tailwind.config.ts
+++ b/jarvis/ui/web/frontend/tailwind.config.ts
@@ -46,6 +46,24 @@ const config: Config = {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
+ /*
+ * Two colours whose ROLE is fixed while their value flips with the
+ * theme. They exist because a large part of this UI is built from
+ * translucent washes rather than solid fills — `bg-white/[0.03]` for a
+ * raised surface, `border-white/[0.08]` for a hairline, `bg-black/60`
+ * for a dialog backdrop — and every one of those is a literal colour
+ * that only works on one ground.
+ *
+ * sheen — "lift this off the surface". White on dark, ink on light.
+ * scrim — "push this behind something". Black on dark, warm charcoal
+ * on light, so a backdrop never turns blue-grey.
+ *
+ * Always use them WITH an alpha (`bg-sheen/[0.04]`, `bg-scrim/60`);
+ * at full opacity they are just the extreme ends of the palette and
+ * you almost certainly want --card / --background instead.
+ */
+ sheen: "rgb(var(--sheen-rgb) / <alpha-value>)",
+ scrim: "rgb(var(--scrim-rgb) / <alpha-value>)",
},
borderRadius: {
lg: "var(--radius)",