Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

feat(gui): inset content pane, tighter Ultra glow, Mono + Rose themes

Rach Pradhan4321dd062ae6
diff --git a/gui/src/app/App.tsx b/gui/src/app/App.tsx
index 73f6288c..60fe69f3 100644
--- a/gui/src/app/App.tsx
+++ b/gui/src/app/App.tsx
@@ -265,7 +265,7 @@ function AppShell() {
return (
<TooltipProvider>
<SidebarProvider className="min-h-screen bg-background">
- <main className="app-shell relative flex h-screen w-full overflow-hidden bg-background">
+ <main className="app-shell relative flex h-screen w-full overflow-hidden bg-sidebar">
<AppThemeToggle
isDarkTheme={isDarkTheme}
onToggleTheme={toggleTheme}
@@ -319,7 +319,7 @@ function AppShell() {
collapsible
collapsedSize={0}
groupResizeBehavior="preserve-pixel-size"
- className={`overflow-hidden${isSidebarAnimating ? " transition-[flex-grow] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]" : ""}`}
+ className={`cg-sidebar-region overflow-hidden${isSidebarAnimating ? " transition-[flex-grow] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]" : ""}`}
onResize={(size) => {
const nextIsVisible = size.inPixels > 0;
if (!nextIsVisible) {
@@ -349,13 +349,13 @@ function AppShell() {
/>
<ResizablePanel
id="chat-panel"
- className={
+ className={`cg-content-region${
isSidebarAnimating
- ? "transition-[flex-grow] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]"
- : undefined
- }
+ ? " transition-[flex-grow] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]"
+ : ""
+ }`}
>
- <section className="flex h-full min-w-0 flex-1 overflow-hidden">
+ <section className="cg-content-card flex h-full min-w-0 flex-1 overflow-hidden">
{isSettingsViewOpen ? (
selectedSettingsSection === "providers" ? (
<ProvidersSettingsPane />
diff --git a/gui/src/app/themeStore.ts b/gui/src/app/themeStore.ts
index 8feca27a..8294c9ee 100644
--- a/gui/src/app/themeStore.ts
+++ b/gui/src/app/themeStore.ts
@@ -1,13 +1,21 @@
import { create } from "zustand";
export type ThemeMode = "light" | "dark";
-export type ThemePresetId = "warm-graphite" | "slate" | "nord" | "forest";
+export type ThemePresetId =
+ | "warm-graphite"
+ | "slate"
+ | "nord"
+ | "forest"
+ | "mono"
+ | "rose";
export const THEME_PRESET_IDS: ThemePresetId[] = [
"warm-graphite",
"slate",
"nord",
"forest",
+ "mono",
+ "rose",
];
const MODE_STORAGE_KEY = "codegraff:theme";
diff --git a/gui/src/components/general-settings/constants/themePresets.ts b/gui/src/components/general-settings/constants/themePresets.ts
index 8cd09c51..c735ea0e 100644
--- a/gui/src/components/general-settings/constants/themePresets.ts
+++ b/gui/src/components/general-settings/constants/themePresets.ts
@@ -33,4 +33,16 @@ export const THEME_PRESETS: ThemePresetMeta[] = [
description: "Warm-neutral base with a sage-green accent.",
swatch: { bg: "#14160f", surface: "#1d2018", accent: "#82b06a", text: "#e8ebe0" },
},
+ {
+ id: "mono",
+ name: "Mono",
+ description: "Pure black & white — monochrome, no hue.",
+ swatch: { bg: "#0a0a0a", surface: "#161618", accent: "#fafafa", text: "#fafafa" },
+ },
+ {
+ id: "rose",
+ name: "Rose",
+ description: "Soft pinks with a bright rose accent.",
+ swatch: { bg: "#1a0e14", surface: "#251521", accent: "#ff6b9d", text: "#f7dde7" },
+ },
];
diff --git a/gui/src/styles/index.css b/gui/src/styles/index.css
index b393bc8c..3f4e9cf8 100644
--- a/gui/src/styles/index.css
+++ b/gui/src/styles/index.css
@@ -1,3 +1,160 @@
+
+:root[data-theme="mono"] {
+ --background: #ffffff;
+ --foreground: #0a0a0a;
+ --card: #f4f4f5;
+ --card-foreground: #0a0a0a;
+ --popover: #f4f4f5;
+ --popover-foreground: #0a0a0a;
+ --primary: #0a0a0a;
+ --primary-foreground: #ffffff;
+ --secondary: #e8e8ea;
+ --secondary-foreground: #0a0a0a;
+ --muted: #ececee;
+ --muted-foreground: #5f5f66;
+ --accent: #18181b;
+ --accent-foreground: #ffffff;
+ --destructive: #b42318;
+ --border: #e1e1e4;
+ --input: #e1e1e4;
+ --ring: #18181b;
+ --chart-1: #18181b;
+ --chart-2: #3f3f46;
+ --chart-3: #71717a;
+ --chart-4: #a1a1aa;
+ --chart-5: #d4d4d8;
+ --sidebar: #f4f4f5;
+ --sidebar-foreground: #0a0a0a;
+ --sidebar-primary: #18181b;
+ --sidebar-primary-foreground: #ffffff;
+ --sidebar-accent: #e8e8ea;
+ --sidebar-accent-foreground: #0a0a0a;
+ --sidebar-border: #e1e1e4;
+ --sidebar-ring: #18181b;
+ --accent-dim: #3f3f46;
+ --success: #3f7d4f;
+ --warn: #9a6e1b;
+ --faint: #b6b6bb;
+ --diff-add-bg: #eaf2ea;
+ --diff-del-bg: #f7e9e9;
+}
+[data-theme="mono"].dark {
+ --background: #0a0a0a;
+ --foreground: #fafafa;
+ --card: #161618;
+ --card-foreground: #fafafa;
+ --popover: #161618;
+ --popover-foreground: #fafafa;
+ --primary: #fafafa;
+ --primary-foreground: #0a0a0a;
+ --secondary: #242427;
+ --secondary-foreground: #fafafa;
+ --muted: #242427;
+ --muted-foreground: #a1a1aa;
+ --accent: #fafafa;
+ --accent-foreground: #0a0a0a;
+ --destructive: #f0654a;
+ --border: #2a2a2e;
+ --input: #2a2a2e;
+ --ring: #fafafa;
+ --chart-1: #fafafa;
+ --chart-2: #d4d4d8;
+ --chart-3: #a1a1aa;
+ --chart-4: #71717a;
+ --chart-5: #52525b;
+ --sidebar: #161618;
+ --sidebar-foreground: #fafafa;
+ --sidebar-primary: #fafafa;
+ --sidebar-primary-foreground: #0a0a0a;
+ --sidebar-accent: #242427;
+ --sidebar-accent-foreground: #fafafa;
+ --sidebar-border: #2a2a2e;
+ --sidebar-ring: #fafafa;
+ --accent-dim: #d4d4d8;
+ --success: #6abf7f;
+ --warn: #d9a441;
+ --faint: #52525b;
+ --diff-add-bg: #16241a;
+ --diff-del-bg: #2a1818;
+}
+:root[data-theme="rose"] {
+ --background: #fff5f8;
+ --foreground: #43162a;
+ --card: #ffe9f0;
+ --card-foreground: #43162a;
+ --popover: #ffe9f0;
+ --popover-foreground: #43162a;
+ --primary: #43162a;
+ --primary-foreground: #fff5f8;
+ --secondary: #ffd6e4;
+ --secondary-foreground: #43162a;
+ --muted: #ffdae7;
+ --muted-foreground: #985570;
+ --accent: #e23e72;
+ --accent-foreground: #fff5f8;
+ --destructive: #c4304a;
+ --border: #f7c6d8;
+ --input: #f7c6d8;
+ --ring: #e23e72;
+ --chart-1: #e23e72;
+ --chart-2: #d96a98;
+ --chart-3: #b5487a;
+ --chart-4: #e88aa8;
+ --chart-5: #985570;
+ --sidebar: #ffe9f0;
+ --sidebar-foreground: #43162a;
+ --sidebar-primary: #e23e72;
+ --sidebar-primary-foreground: #fff5f8;
+ --sidebar-accent: #ffd6e4;
+ --sidebar-accent-foreground: #43162a;
+ --sidebar-border: #f7c6d8;
+ --sidebar-ring: #e23e72;
+ --accent-dim: #c22f60;
+ --success: #4f9d7a;
+ --warn: #c98a2b;
+ --faint: #dbabbd;
+ --diff-add-bg: #e9f1e6;
+ --diff-del-bg: #ffdde7;
+}
+[data-theme="rose"].dark {
+ --background: #1a0e14;
+ --foreground: #f7dde7;
+ --card: #251521;
+ --card-foreground: #f7dde7;
+ --popover: #251521;
+ --popover-foreground: #f7dde7;
+ --primary: #f7dde7;
+ --primary-foreground: #1a0e14;
+ --secondary: #341f2c;
+ --secondary-foreground: #f7dde7;
+ --muted: #341f2c;
+ --muted-foreground: #c79aac;
+ --accent: #ff6b9d;
+ --accent-foreground: #1a0e14;
+ --destructive: #e8617a;
+ --border: #3e2533;
+ --input: #3e2533;
+ --ring: #ff6b9d;
+ --chart-1: #ff6b9d;
+ --chart-2: #ff9bbd;
+ --chart-3: #d96a98;
+ --chart-4: #b5487a;
+ --chart-5: #c79aac;
+ --sidebar: #251521;
+ --sidebar-foreground: #f7dde7;
+ --sidebar-primary: #ff6b9d;
+ --sidebar-primary-foreground: #1a0e14;
+ --sidebar-accent: #341f2c;
+ --sidebar-accent-foreground: #f7dde7;
+ --sidebar-border: #3e2533;
+ --sidebar-ring: #ff6b9d;
+ --accent-dim: #e85b8d;
+ --success: #6abf9f;
+ --warn: #d9a441;
+ --faint: #5c3d4c;
+ --diff-add-bg: #182619;
+ --diff-del-bg: #2e1820;
+}
@import "tailwindcss";
@import "tw-shimmer";
@import "tw-animate-css";
@@ -1064,7 +1221,7 @@
/* Soft outer bloom so the card reads as "lit" against the dark surface. */
.cg-ultra-shine::after {
position: absolute;
- inset: -1px;
+ inset: 0;
z-index: -2;
content: "";
border-radius: inherit;
@@ -1080,8 +1237,8 @@
#ff5fa2,
#ff5f6d
);
- filter: blur(11px);
- opacity: 0.35;
+ filter: blur(6px);
+ opacity: 0.22;
animation: cg-ultra-spin 4s linear infinite;
}
@@ -1091,3 +1248,40 @@
animation: none;
}
}
+
+/* --- Inset content pane + sidebar spotlight ---
+ macOS detail-pane layout: the content sits flush against the sidebar and the
+ window edges, rounded only on the corners that face the sidebar so the sidebar
+ surface shows through the rounded notch. The whole window wears the sidebar
+ colour (bg-sidebar on .app-shell); the content pane is the brighter --background
+ surface laid over it. The sidebar still recedes while you work in the content —
+ dimming so the active side reads as "lit" — then lights back up on hover. */
+.cg-content-region {
+ padding: 0;
+}
+
+.cg-content-card {
+ border-radius: 0.75rem 0 0 0.75rem;
+ background: var(--pane-surface);
+}
+
+.cg-sidebar-region {
+ transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
+ will-change: opacity;
+}
+
+/* Working in the content (composer focused, a control active) dims the sidebar. */
+.app-shell:has(.cg-content-card:focus-within) .cg-sidebar-region {
+ opacity: 0.48;
+}
+
+/* …but hovering the sidebar lights it back up, even while the composer holds focus. */
+.app-shell:has(.cg-content-card:focus-within) .cg-sidebar-region:hover {
+ opacity: 1;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .cg-sidebar-region {
+ transition: none;
+ }
+}