fix(charts): light-theme chart text uses semantic tokens

Recharts tick/label/tooltip colours in the scatter-correlation chart,
the three mood charts, and the admin host-metrics chart referenced the
raw Dracula primitives (--dracula-fg / --dracula-comment), which the
light theme never overrides — near-white text on a near-white card
(~1.0:1) and an AA-failing comment gray (~2.5:1). Swap all 23 sites to
--foreground / --muted-foreground. Dark theme is pixel-identical: the
semantic tokens alias the same Dracula values there (#f8f8f2 /
#9aa3b3); light resolves to the AA-checked soft-neutral values.

H5
This commit is contained in:
Marc-André Bombeck committed 2026-07-07 12:03:15 +02:00
1 parent 85058716f6
commit f0b16c1a39
5 files changed
+23 -23

No files matched your search

+2 -2
View File
@@ -267,8 +267,8 @@ export function HostMetricsChart() {
borderRadius: "0.5rem",
fontSize: "0.75rem",
}}
labelStyle={{ color: "var(--dracula-fg)" }}
itemStyle={{ color: "var(--dracula-fg)" }}
labelStyle={{ color: "var(--foreground)" }}
itemStyle={{ color: "var(--foreground)" }}
formatter={(value, name) => {
if (typeof value !== "number") return [String(value), name];
if (name === t("admin.hostMetrics.load1")) {