From befa06c4c851776beaf91bf23c32a72dadbf9e22 Mon Sep 17 00:00:00 2001 From: Andrey Tatarinov Date: Thu, 10 Sep 2026 17:47:18 +0000 Subject: [PATCH] Make the dashboard follow the light/dark color scheme The dashboard page always rendered light, with every color a hardcoded hex in inline styles, and React Flow v11 has no dark mode of its own (colorMode is v12+). Every color in static/index.html is now a CSS custom property defined once as a light-dark(, ) pair under color-scheme: light dark. Light values are the previous hexes, so light mode is unchanged. Inline styles reference the tokens as "var(--...)" strings (including GROUP_COLORS and SELECTED_EDGE_COLOR), so a prefers-color-scheme change repaints in CSS alone: no matchMedia listener, no re-render, no dagre relayout. React Flow's stylesheet colors (edges, handles, controls, minimap, attribution) are overridden in the same @@ -47,32 +132,33 @@ // rowBackground/rowText are a deeper shade of the same hue as background/border — used by // a node's stacked consumer rows, so they read as part of the same node rather than an - // unrelated color. + // unrelated color. Each is a theme token (see the