Fix TodoCover urgency computed at build time
src/lib/TodoCover.svelte computes maxAgeDays and urgency from Date.now() relative to a hardcoded URGENCY_DATE = '23-01-2026'. During prerender that is the build
date; on the client it is the visit date. The style attribute (--urgency) then differs between SSR HTML and the hydrated DOM, and the reference
date is a magic number tied to this repository.
Tasks
- Compute urgency in one place: either build-time only (pass
nowfrom the renderer and do not recompute on the client), or client-only after mount - Replace
URGENCY_DATEwith the oldest open todo's date, or aPROJECT_*constant - Move the Tailwind hex colours into the IDS colour tokens
Read next
