feat(frontend): mute dark mode colours to reduce cold feeling
All checks were successful
CI / Maven unit tests (push) Successful in 18s
CI / Build and push images (push) Successful in 1m48s
CI / Deploy to server (push) Successful in 16s

This commit is contained in:
2026-10-17 22:05:48 +01:00
parent 34b150b77e
commit 2818d33dd5

View File

@@ -56,50 +56,61 @@
/* Dark mode. Only token values change here: every component already styles /* Dark mode. Only token values change here: every component already styles
itself with the semantic utilities above, so the whole UI follows from this itself with the semantic utilities above, so the whole UI follows from this
one block. `--color-on-dark` is deliberately absent — it is the ink on the one block. `--color-on-dark` is deliberately absent — it is the ink on the
media backdrop, which stays dark in both themes. */ media backdrop, which stays dark in both themes.
Soft charcoal rather than pure black, with only a trace of warmth so it
still sits with the paper tones of the light theme. Ink is a warm off-white
instead of #FFF, and terracotta becomes a gentle clay. Layering matches the
light theme: sidebar recessed, cards raised, fields inset into the card. */
:root[data-theme="dark"] { :root[data-theme="dark"] {
color-scheme: dark; color-scheme: dark;
/* ── Surfaces ── near-black canvas, neutral cards lifting off it ─────── */ /* ── Surfaces ────────────────────────────────────────────────────────── */
--color-background: #0E0E10; --color-background: #161615;
--color-sidebar: #09090B; --color-sidebar: #111111;
--color-card: #17171A; --color-card: #1F1F1E;
--color-fields: #121215; --color-fields: #1A1A19;
--color-dropzone: #141417; --color-dropzone: #1C1C1B;
--color-media-backdrop: #000000; --color-media-backdrop: #0B0B0B;
/* ── Ink ─────────────────────────────────────────────────────────────── */ /* ── Ink ─────────────────────────────────────────────────────────────── */
--color-text-primary: #F4F4F5; --color-text-primary: #F5F4EF;
--color-text-strong: #E3E3E7; --color-text-strong: #E8E6E0;
--color-text-body: #BFBFC6; --color-text-body: #C9C7C0;
--color-text-secondary: #94949D; --color-text-secondary: #A2A099;
--color-muted: #76767F; --color-muted: #87857F;
--color-faint-mono: #6A6A73; --color-faint-mono: #6C6B66;
/* ── Accents ── brightened to carry on a dark canvas, so hover now lifts /* ── Accents ── clay and sage; hover lightens rather than deepens ────── */
rather than deepens ─────────────────────────────────────────────────── */ --color-terracotta: #D97757;
--color-terracotta: #E07A4C; --color-terracotta-hover: #E28B6E;
--color-terracotta-hover: #F08F62; --color-terracotta-light: #BC6A4E;
--color-terracotta-light: #F0A177; --color-terracotta-disabled: #46372F;
--color-terracotta-disabled: #5E463A; --color-olive: #A7AF84;
--color-olive: #A3B678;
/* ── Status ──────────────────────────────────────────────────────────── */ /* ── Status ──────────────────────────────────────────────────────────── */
--color-live: #F2604A; --color-live: #E0644E;
--color-error: #F2604A; --color-error: #E0644E;
/* ── Ink on accent surfaces ── the accents are light here, so the ink that /* ── Ink on accent surfaces ── the accents are light here, so the ink that
sits on them flips dark ─────────────────────────────────────────────── */ sits on them flips dark ─────────────────────────────────────────────── */
--color-on-accent: #17100B; --color-on-accent: #1A1410;
/* ── Lines, chips, placeholders ──────────────────────────────────────── */ /* ── Lines, chips, placeholders ──────────────────────────────────────── */
--color-hairline: #232327; --color-hairline: #282827;
--color-hover: #26262B; --color-hover: #2A2A29;
--color-selected: #2A1F18; --color-selected: #2A2522;
--color-ring: #33333A; --color-ring: #3B3B3A;
--color-inactive: #2C2C32; --color-inactive: #333332;
--color-inactive-strong: #55555E; --color-inactive-strong: #5A5955;
}
/* Tailwind's shadows default to 10% black, which vanishes on a dark canvas.
`--tw-shadow-color` does not inherit, so it is set on the shadowed elements
themselves; a deeper warm-black keeps cards and menus visibly lifted. */
:root[data-theme="dark"] :where(.shadow-sm, .shadow-md) {
--tw-shadow-color: rgb(0 0 0 / 0.45);
} }
:root { :root {