Fix dark mode and bring the public design in line with the taste audit

- Dark mode: the countdown card, timeline section, Giving text, error
  text, the Leadership button, skeletons and the admin's dark text all
  follow the tokens; logos get a light plate in dark mode
- One BRAND accent (the button token, so the admin palette reaches
  every page) and one ACCENTS family in color.ts, replacing 20 local
  teal constants and the purple, ochre and rust section colours;
  neon green and gold become mint and brand green
- Shadows are tinted with the site's ink; glow shadows are gone
- One giving label, Give, in the nav, footer and Giving page
- Phosphor icons replace the hand-drawn SVGs and the glyph icons;
  Pathfinder paths pick a named icon (emoji still shown) and lose the
  watermark
- Home keeps two eyebrows; StatsBand's title is a real heading;
  section headings step down under the page title
- Nav links switch to the menu below lg, so they never wrap; jump
  links land clear of the header; press feedback on buttons
- Empty sections say what's coming and who to ask; loading is a
  skeleton; form placeholders and borders are readable; one
  corner-radius rule; theme-color for both modes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-29 02:54:03 -05:00
parent f72a9604d2
commit 048c7599ce
59 changed files with 416 additions and 350 deletions

View file

@ -20,7 +20,7 @@
title: "Local Chapters",
blurb: "Optional line under the section heading.",
accent: "#0f7183", // heading, banner, rule
accent: BRAND, // heading, banner, rule
background: "var(--color-tint)",
actions: <SomeButton />, // optional, right of the heading
content: <YourStuff />,
@ -32,9 +32,8 @@
import { useEffect, type ReactNode } from "react";
import { documentTitle } from "../lib/site.ts";
import { accentText } from '../lib/color.ts'
import { accentText, BRAND } from '../lib/color.ts'
const TEAL = "#0f7183";
export type ShellSection = {
id: string;
@ -70,20 +69,21 @@ export function Section({ section }: { section: ShellSection }) {
<section
id={id}
className="py-20"
style={{ background, scrollMarginTop: "5rem" }}
// Clear of the fixed header, whatever it holds today (Layout
// sets --header-h from its measured height).
style={{ background, scrollMarginTop: "calc(var(--header-h, 5rem) + 1rem)" }}
>
{/* Heading, left aligned, optional actions on the right */}
<div className="max-w-6xl mx-auto px-6 mb-10">
<div className="flex flex-wrap items-end justify-between gap-4">
<div>
<h2 className="text-4xl md:text-5xl font-extrabold" style={{ color: accentText(accent) }}>
<h2 className="text-3xl md:text-4xl font-extrabold" style={{ color: accentText(accent) }}>
{title}
</h2>
{blurb && <p className="mt-2 text-muted max-w-xl">{blurb}</p>}
</div>
{actions}
</div>
<div className="mt-6 h-px w-full" style={{ background: accent, opacity: 0.35 }} />
</div>
{content}
@ -104,7 +104,7 @@ export default function PageShell({ title, intro, sections }: PageShellProps) {
{/* Page header */}
<div className="pt-24 pb-12 px-6" style={{ background: "var(--color-tint)" }}>
<div className="max-w-6xl mx-auto">
<h1 className="text-5xl md:text-6xl font-extrabold" style={{ color: accentText(TEAL) }}>
<h1 className="text-5xl md:text-6xl font-extrabold" style={{ color: accentText(BRAND) }}>
{title}
</h1>
{intro && <p className="mt-3 text-lg text-muted max-w-2xl">{intro}</p>}