From 91d747c54accda8629ddfb7abf6488de60722806 Mon Sep 17 00:00:00 2001 From: Davide Scaini Date: Sat, 25 Apr 2026 15:41:45 +0200 Subject: [PATCH] feat: seasonal race palette auto-detection on web Inline script in Base.astro sets --accent / --accent-dim CSS variables before first paint based on the current date. Switches to pink (Giro), yellow (Tour), or red (Vuelta) during each Grand Tour window; falls back to the default blue. Also aligns default --accent with the mobile app (#60a5fa instead of #00c8ff). --- site/src/layouts/Base.astro | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/site/src/layouts/Base.astro b/site/src/layouts/Base.astro index d3e81b9..64e6f03 100644 --- a/site/src/layouts/Base.astro +++ b/site/src/layouts/Base.astro @@ -49,6 +49,37 @@ try { document.documentElement.setAttribute('data-theme', t); + + +