fix(theme): add AA light-mode overrides for the remaining dracula primitives

Only --dracula-yellow carried a light (Alucard) override; the other seven
primitives kept their dark neons, so every legacy text-dracula-* utility
rendered at 1.2-1.6:1 on the white card. Each override is tuned to the
semantic light palette already in the block (same hue family) and measured
at >=4.5:1 against both --card and --background; the measured ratios are
documented per line. The semantic sweep that retires the raw utilities
stays a follow-up.
This commit is contained in:
Marc-André Bombeck committed 2026-07-05 16:21:29 +02:00
1 parent d0c62dc7b0
commit 3ce6236406
1 file changed
+19
+19
View File
@@ -335,7 +335,26 @@
--chart-3: #a3134d;
--chart-4: #036a96;
--chart-5: #a34d14;
/*
* Light-mode (Alucard) overrides for the raw `--dracula-*` primitives.
* ~250 legacy `text-dracula-*` / `bg-dracula-*/N` call sites still read
* these directly; without an override the dark neons render on the white
* card at 1.2–1.6:1. Each value below is tuned to the AA light palette
* already in this block (same hue family, measured >=4.5:1 on both
* `--card` oklch(0.988 0.003 300) and `--background` oklch(0.964 0.004
* 300)), so every legacy utility inherits a readable tone until the
* semantic sweep retires it.
*/
--dracula-cyan: #036a96; /* shadows --info — 5.78:1 card / 5.39:1 bg */
--dracula-green: #14720a; /* shadows --success — 5.89:1 card / 5.49:1 bg */
--dracula-orange: #a34d14; /* shadows --warning — 5.59:1 card / 5.21:1 bg */
--dracula-pink: #a3134d; /* shadows --chart-3 — 7.35:1 card / 6.85:1 bg */
--dracula-purple: #644ac9; /* shadows --primary/chart-1 — 6.03:1 card / 5.62:1 bg */
--dracula-red: #cb3a2a; /* shadows --destructive — 4.85:1 card / 4.52:1 bg */
--dracula-yellow: #846e15;
/* Lavender has no semantic twin; a violet one step lighter than purple,
* AA-tuned — 4.97:1 card / 4.63:1 bg. */
--dracula-lavender: #7c50e0;
--sidebar: oklch(0.988 0.003 300);
--sidebar-foreground: oklch(0.3 0.012 295);
--sidebar-primary: #644ac9;