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

@ -68,7 +68,7 @@ function Stat({ label, value }) {
<div className="text-xs font-medium uppercase tracking-wider text-muted/70">
{label}
</div>
<div className="mt-1 break-words text-sm font-medium text-[#0f2f36]">{value}</div>
<div className="mt-1 break-words text-sm font-medium text-ink">{value}</div>
</div>
);
}
@ -198,7 +198,7 @@ export default function AdminPanel() {
className="rounded-full border border-brand/20 bg-surface px-3 py-1 text-sm text-muted"
>
{row.label}{" "}
<strong className="font-semibold text-[#0f2f36]">
<strong className="font-semibold text-ink">
{row.count ?? "-"}
</strong>
</span>
@ -232,7 +232,7 @@ export default function AdminPanel() {
return (
<tr key={row.id} className={row.is_active ? "" : "bg-tint-soft"}>
<td className="px-4 py-3">
<div className="font-medium text-[#0f2f36]">
<div className="font-medium text-ink">
{row.name || row.email}
{isMe && (
<span className="ml-2 text-xs font-normal text-muted/70">
@ -255,7 +255,7 @@ export default function AdminPanel() {
value={row.role}
disabled={locked || busy}
onChange={(e) => changeRole(row, e.target.value)}
className="rounded-lg border border-brand/30 bg-surface px-2 py-1 text-sm text-[#0f2f36] disabled:cursor-not-allowed disabled:bg-tint-soft disabled:text-muted/60"
className="rounded-lg border border-brand/30 bg-surface px-2 py-1 text-sm text-ink disabled:cursor-not-allowed disabled:bg-tint-soft disabled:text-muted/60"
title={
isMe
? "You can't change your own role."
@ -314,7 +314,7 @@ export default function AdminPanel() {
<dl className="mt-4 grid gap-x-6 gap-y-1.5 text-sm sm:grid-cols-2">
{ROLES.map((role) => (
<div key={role} className="flex gap-2">
<dt className="shrink-0 font-medium text-[#0f2f36]">
<dt className="shrink-0 font-medium text-ink">
{ROLE_LABELS[role]}
</dt>
<dd className="text-muted">{ROLE_NOTES[role]}</dd>