Skip to content

Agent Zero AI framework

Use the existing darker background token for file trees

Alessandrofab0973a9015
diff --git a/webui/css/AGENTS.md b/webui/css/AGENTS.md
index 53ec92c64..403e7e9ae 100644
--- a/webui/css/AGENTS.md
+++ b/webui/css/AGENTS.md
@@ -11,7 +11,7 @@
- `loading-indicators.css` owns reusable loading visuals; `messages.css` owns chat-history paging placement, the context-switch splash surface, and lazy message-preview states in addition to message presentation.
- Component-specific styles should usually stay inside the component HTML unless they are intentionally shared.
- `modals.css` owns the shared stacked modal shell, backdrop, scroll area, footer slot, modal button classes, floating/no-backdrop modal behavior, and shared modal section primitives.
-- `surfaces.css` owns surface modal switchers, action rails, draggable header affordances, focus-button state, and right-canvas surface primitives. Files, Editor, and Browser opt into `surface-workspace` for the lighter panel palette, common toolbar chrome, flat `surface-control` buttons, and group separators. Surface modal headers share a 48px border-box height with centered titles and controls; component styles must not override their sizing. Surface modal header controls are borderless in normal, hover, and active states; preserve group separators and keyboard focus outlines. Tab bars and toolbars share a 48px baseline with vertically centered controls. Keep these styles opt-in and preserve viewer/content themes; primary empty-state actions such as Open Browser retain their existing button styling.
+- `surfaces.css` owns surface modal switchers, action rails, draggable header affordances, focus-button state, and right-canvas surface primitives. Files, Editor, and Browser opt into `surface-workspace` for the lighter panel palette, common toolbar chrome, flat `surface-control` buttons, and group separators. Surface modal headers share a 48px border-box height with centered titles and controls; component styles must not override their sizing. Surface modal header controls are borderless in normal, hover, and active states; preserve group separators and keyboard focus outlines. Tab bars and toolbars share a 48px baseline with vertically centered controls. File trees use `--color-background` to contrast with the lighter `--color-panel` workspace. Keep these styles opt-in and preserve viewer/content themes; primary empty-state actions such as Open Browser retain their existing button styling.
- `index.css` defines global theme variables such as `--color-*`, `--spacing-*`, `--font-size-*`, and `--transition-speed`.
## Local Contracts
diff --git a/webui/css/surfaces.css b/webui/css/surfaces.css
index f6c9336ab..662cc4aa2 100644
--- a/webui/css/surfaces.css
+++ b/webui/css/surfaces.css
@@ -317,12 +317,15 @@
.surface-workspace.editor-panel,
.surface-workspace .editor-shell,
.surface-workspace .editor-preview-shell,
-.surface-workspace .file-tree,
.surface-workspace .files-list,
.surface-workspace .file-browser-footer {
background: var(--surface-background);
}
+.surface-workspace .file-tree {
+ background: var(--color-background);
+}
+
@media (prefers-reduced-motion: reduce) {
.surface-workspace button.surface-control { transition: none; }
}