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:
parent
ee61568911
commit
c74ad746f5
70 changed files with 829 additions and 596 deletions
|
|
@ -11,7 +11,7 @@ const SECTIONS = [
|
|||
title: "Board & Staff",
|
||||
blurb: "The people guiding Next Generation of Unity day to day.",
|
||||
accent: "#0f7183",
|
||||
background: "#eef9fb",
|
||||
background: "var(--color-tint)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
<PeopleTiles size="lg" teams={{ id: "ngu-board",}} />
|
||||
|
|
@ -23,7 +23,7 @@ const SECTIONS = [
|
|||
title: "Retreat Team",
|
||||
blurb: "Volunteers who plan and lead our gatherings throughout the year.",
|
||||
accent: "#4a7a2f",
|
||||
background: "#ffffff",
|
||||
background: "var(--color-surface)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
<PeopleTiles size="lg" teams="ngu-retreat-team" />
|
||||
|
|
@ -35,7 +35,7 @@ const SECTIONS = [
|
|||
title: "Committees & Volunteers",
|
||||
blurb: "Additional roles and contributors.",
|
||||
accent: "#7a5ea8",
|
||||
background: "#eef9fb",
|
||||
background: "var(--color-tint)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
{/* Other roles content */}
|
||||
|
|
@ -47,7 +47,7 @@ const SECTIONS = [
|
|||
title: "Contact Us",
|
||||
blurb: "Reach out to our staff",
|
||||
accent: "#004c52",
|
||||
background: "#ffffff",
|
||||
background: "var(--color-surface)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
<a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue