Add colour tokens, dark mode and drop gradients

- Colour tokens in index.css named by role (ink, body, muted, link,
  brand, action, surface, tint, danger), used everywhere instead of hex
- Dark mode: follows the system, a header toggle (site and admin)
  overrides it and is remembered; set before first paint in index.html
- Data colours go through src/lib/color.ts: withAlpha for tints,
  accentText (lighter on dark) for text in an accent, readableOn for
  text on one, so an admin's pale colour still reads
- Migration 040 drops events.gradient: a card is its photo or plain,
  with its colour as the border; other decorative gradients are solid
- The countdown and a hero event without a photo mix their colour
  toward ink behind white text

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-28 22:42:59 -05:00
parent ee61568911
commit c74ad746f5
70 changed files with 829 additions and 596 deletions

View file

@ -47,7 +47,7 @@ const SECTIONS = [
title: "National Retreats",
blurb: "Our flagship gatherings, open to young adults across the country.",
accent: "#0f7183",
background: "#eef9fb",
background: "var(--color-tint)",
Component: EventListCards,
props: { scope: "national", ...RETREATS },
views: { ...CARD_VIEWS, default: "carousel" },
@ -57,7 +57,7 @@ const SECTIONS = [
title: "Regional Retreats",
blurb: "Smaller gatherings hosted by regions throughout the year.",
accent: "#4a7a2f",
background: "#ffffff",
background: "var(--color-surface)",
Component: EventListCards,
props: { scope: "regional", ...RETREATS },
views: { ...CARD_VIEWS, default: "grid" },
@ -67,7 +67,7 @@ const SECTIONS = [
title: "Partner Events",
blurb: "Retreats hosted by organizations we collaborate with.",
accent: "#7a5ea8",
background: "#eef9fb",
background: "var(--color-tint)",
Component: EventListCards,
props: { scope: "partner", ...RETREATS },
views: { ...CARD_VIEWS, default: "grid" },
@ -82,7 +82,7 @@ const SECTIONS = [
title: "Local Events",
blurb: "Hosted by individual chapters.",
accent: "#9a5b17",
background: "#ffffff",
background: "var(--color-surface)",
Component: EventListCards,
props: { scope: "local", ...RETREATS_ONLY },
views: { ...CARD_VIEWS, default: "grid" },
@ -92,7 +92,7 @@ const SECTIONS = [
title: "International Events",
blurb: "Gatherings beyond the US.",
accent: "#2f6bb5",
background: "#eef9fb",
background: "var(--color-tint)",
Component: EventListCards,
props: { scope: "international", ...RETREATS_ONLY },
views: { ...CARD_VIEWS, default: "grid" },
@ -102,7 +102,7 @@ const SECTIONS = [
title: "Other Events",
blurb: "Everything that doesn't fit the categories above.",
accent: "#5d6c70",
background: "#ffffff",
background: "var(--color-surface)",
Component: EventListCards,
props: { scope: "other", ...RETREATS_ONLY },
views: { ...CARD_VIEWS, default: "grid" },