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

@ -39,7 +39,8 @@
just has one answer on a phone.
═══════════════════════════════════════════════════════════════ */
import { useMemo, useState } from 'react'
import { ArrowRight, ArrowLeft, CaretRight, CaretLeft } from '@phosphor-icons/react'
import { useMemo, useState, type ReactNode } from 'react'
import { Link } from 'react-router-dom'
import { typesPresent, useEvents } from '../../lib/eventData.ts'
@ -47,7 +48,7 @@ import { EVENT_TYPES, eventTypeLabel, type EventType } from '../../lib/eventType
import { firstOccurrenceFrom, occurrencesBetween, seriesTimes } from '../../lib/eventSeries.ts'
import { eventHref } from '../../lib/hrefs.ts'
import type { EventListItem } from '../../lib/useContent.ts'
import { withAlpha, accentText, readableOn } from '../../lib/color.ts'
import { withAlpha, accentText, readableOn, BRAND } from '../../lib/color.ts'
export type CalendarControl = 'scope' | 'type' | 'online' | 'search'
export type CalendarView = 'month' | 'list'
@ -57,7 +58,6 @@ const ALL_CONTROLS: CalendarControl[] = ['scope', 'type', 'online', 'search']
/* Bar rows drawn per week before a day collapses to "+N more". */
const MAX_LANES = 3
const TEAL = '#0f7183'
const INK = 'var(--color-ink)'
const BODY = 'var(--color-muted)'
@ -228,7 +228,7 @@ export default function EventCalendar({
host,
status,
type,
accent = TEAL,
accent = BRAND,
controls = ALL_CONTROLS,
defaultView = 'month',
}: EventCalendarProps) {
@ -312,10 +312,10 @@ export default function EventCalendar({
<div className="flex flex-wrap items-center gap-3">
<div className="flex items-center gap-2">
<NavButton label="Previous month" onClick={() => go(shiftMonth(month, -1))} accent={accent}>
‹
<CaretLeft size={20} weight="bold" aria-hidden="true" />
</NavButton>
<NavButton label="Next month" onClick={() => go(shiftMonth(month, 1))} accent={accent}>
›
<CaretRight size={20} weight="bold" aria-hidden="true" />
</NavButton>
</div>
@ -381,7 +381,7 @@ export default function EventCalendar({
/>
)}
{show('online') && (
<label className="flex cursor-pointer items-center gap-2 rounded-full border border-brand/25 bg-surface px-4 py-2 text-sm">
<label className="flex cursor-pointer items-center gap-2 rounded-full border border-brand/50 bg-surface px-4 py-2 text-sm">
<input
type="checkbox"
checked={onlineOnly}
@ -399,7 +399,7 @@ export default function EventCalendar({
onChange={(e) => setQuery(e.target.value)}
placeholder="Search events"
aria-label="Search events"
className="min-w-[12rem] flex-1 rounded-full border border-brand/25 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40 md:max-w-xs"
className="min-w-[12rem] flex-1 rounded-full border border-brand/50 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40 md:max-w-xs"
/>
)}
{filtering && (
@ -422,7 +422,7 @@ export default function EventCalendar({
Couldn’t load events. {error.message}
</p>
) : loading ? (
<div className="h-[32rem] animate-pulse rounded-3xl bg-white/70" aria-hidden="true" />
<div className="h-[32rem] animate-pulse rounded-3xl bg-tint" aria-hidden="true" />
) : (
<>
{view === 'month' && (
@ -460,7 +460,7 @@ export default function EventCalendar({
className="font-semibold hover:underline"
style={{ color: accentText(accent) }}
>
Jump to the next event, {monthTitle(monthKey(next))} →
Jump to the next event, {monthTitle(monthKey(next))} <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</button>
) : filtering ? (
'Nothing matches these filters.'
@ -593,14 +593,14 @@ function Bar({ seg, accent }: { seg: Segment; accent: string }) {
background: color,
}}
>
{seg.continuesBefore && <span aria-hidden="true">←</span>}
{seg.continuesBefore && <ArrowLeft size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />}
<span className="truncate">
{seg.time && seg.span === 1 && <span className="font-normal opacity-85">{seg.time.split(' – ')[0]} </span>}
{seg.event.title}
</span>
{seg.continuesAfter && (
<span className="ml-auto" aria-hidden="true">
→
<ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</span>
)}
</Link>
@ -749,7 +749,7 @@ function NavButton({
label: string
onClick: () => void
accent: string
children: string
children: ReactNode
}) {
return (
<button
@ -782,7 +782,7 @@ function FilterSelect({
value={value}
onChange={(e) => onChange(e.target.value)}
aria-label={label}
className="rounded-full border border-brand/25 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40"
className="rounded-full border border-brand/50 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40"
>
<option value="">{all}</option>
{options.map(([id, name]) => (