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

@ -31,7 +31,7 @@ const SECTIONS = [
blurb:
"Young adult groups meeting in person and online across the movement.",
accent: "#0f7183",
background: "#eef9fb",
background: "var(--color-tint)",
Component: OrgListMap,
views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle },
},
@ -41,7 +41,7 @@ const SECTIONS = [
blurb:
"The regional organizations that support chapters and host their own gatherings.",
accent: "#4a6b72",
background: "#ffffff",
background: "var(--color-surface)",
Component: OrgListVertical,
props: {
kind: "region",
@ -59,7 +59,7 @@ const SECTIONS = [
blurb:
"Organizations we collaborate with across the Unity movement and beyond.",
accent: "#7a5ea8",
background: "#eef9fb",
background: "var(--color-tint)",
Component: OrgListCards,
props: {
kind: "partner",
@ -78,7 +78,7 @@ export default function CommunityPage() {
title: blog?.title || BLOG_DEFAULT_TITLE,
blurb: blog?.blurb ?? undefined,
accent: "#0f7183",
background: "#ffffff",
background: "var(--color-surface)",
Component: CommunityBlog,
},
...SECTIONS,