Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(styles): move CSS custom properties from index.css to tokens.css

Steven Enamakelb1f3b4162e3a
diff --git a/app/src/index.css b/app/src/index.css
index 34cdf5ecb7..ea6cbc28ce 100644
--- a/app/src/index.css
+++ b/app/src/index.css
@@ -536,8 +536,15 @@
line-height: 1.6;
/* Themes may supply a decorative `--app-gradient`; fall back to the flat
- canvas colour when they don't. */
- background: var(--app-gradient, var(--color-background));
+ canvas colour when they don't.
+
+ `--color-surface-canvas`, NOT `--color-background`: the latter is the
+ shadcn alias and resolves to `--surface`, i.e. the *card* colour, so the
+ app canvas and the content card painted the same value and the frame
+ around the card had nothing but the chrome scrim to separate them. The
+ canvas token is what "app background — primary background" means in
+ `styles/tokens.css`. */
+ background: var(--app-gradient, var(--color-surface-canvas));
color: var(--color-content);
position: absolute;
top: 0;
diff --git a/app/src/styles/tokens.css b/app/src/styles/tokens.css
index 43465dac1e..cadcebe73e 100644
--- a/app/src/styles/tokens.css
+++ b/app/src/styles/tokens.css
@@ -29,11 +29,17 @@
--surface-hover: 240 240 240; /* hover fills — distinct from white surface so
hover reads on elevated cards, not just canvas */
--surface-overlay: 0 0 0; /* modal scrim (used with /40../70) */
- --surface-chrome: 245 245 245; /* window chrome — the tinted frame the sidebar
- sits on, behind the inset content card. Used
- at partial alpha as a legibility scrim over
- the themed AppBackground, so it must stay a
- near-canvas neutral, not an accent. */
+ --surface-chrome: 214 214 214; /* window chrome — the tinted frame the sidebar
+ sits on, behind the inset content card
+ (stone-300). Used at partial alpha as a
+ legibility scrim over the themed
+ AppBackground, so it must stay a neutral,
+ not an accent. Was stone-100, identical to
+ the canvas beneath it, which left the /30
+ scrim doing nothing and the white card
+ floating on white. Dark mode needs no
+ equivalent bump — its chrome (10) is already
+ below both canvas and surface. */
/* ---- Text ---- */
--content: 23 23 23; /* primary text (stone-900) */