From 79f1d09eef07db3aca576bdd0a83f187d357a446 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Wed, 30 Sep 2026 16:51:14 -0500 Subject: [PATCH] Try the revised palette (teal, green, amber, ink) The suggested grid as the theme defaults, light and dark, with PALETTE, the accents (olive becomes amber), the backdrop shades and every literal from the old grid mapped over. Every text pair passes the admin's 4.5:1 check; the hero's filled button is amber. Co-Authored-By: Claude Opus 5.5 --- server/src/themeDefaults.js | 20 +++---- src/components/Banner.tsx | 2 +- src/components/Footer.tsx | 6 +-- src/components/Layout.tsx | 14 ++--- src/components/PageBackdrop.css | 34 ++++++------ src/components/QrCode.tsx | 2 +- src/components/VideoPlayer.tsx | 2 +- src/components/admin/MediaLibrary.tsx | 4 +- src/components/admin/fields.tsx | 2 +- src/index.css | 72 ++++++++++++------------- src/lib/color.ts | 36 ++++++------- src/pages/Community.tsx | 4 +- src/pages/Leadership.tsx | 2 +- src/pages/Resources.tsx | 2 +- src/pages/Retreats.tsx | 4 +- src/pages/sections/OrgList-Card.tsx | 2 +- src/pages/sections/OrgList-Map.tsx | 2 +- src/pages/sections/OrgList-Vertical.tsx | 2 +- src/pages/sections/home/HeroStage.tsx | 14 ++--- src/pages/sections/home/Pathfinder.tsx | 2 +- src/pages/sections/home/StatsBand.tsx | 4 +- 21 files changed, 116 insertions(+), 116 deletions(-) diff --git a/server/src/themeDefaults.js b/server/src/themeDefaults.js index ac94cab..439123c 100644 --- a/server/src/themeDefaults.js +++ b/server/src/themeDefaults.js @@ -14,16 +14,16 @@ // light dark export const THEME_DEFAULTS = { - ink: ["#001011", "#fcfffd"], - body: ["#004552", "#c2f6ff"], - muted: ["#004c52", "#aac992"], - link: ["#004552", "#5ce7ff"], - brand: ["#008fa8", "#008fa8"], - action: ["#004552", "#004c52"], - "action-hover": ["#001011", "#004552"], - surface: ["#fcfffd", "#001011"], - tint: ["#c2f6ff", "#004552"], - "tint-soft": ["#e8fcfe", "#00252b"], + ink: ["#001011", "#f5f9f8"], + body: ["#003a45", "#d6f5fa"], + muted: ["#3b5456", "#a3b8b9"], + link: ["#00748a", "#5cd3e6"], + brand: ["#00748a", "#00748a"], + action: ["#00748a", "#00748a"], + "action-hover": ["#003a45", "#003a45"], + surface: ["#f5f9f8", "#001011"], + tint: ["#d6f5fa", "#003a45"], + "tint-soft": ["#e8f5f6", "#00222a"], danger: ["#b3261e", "#ff8a80"], "danger-tint": ["#fdf3f2", "#3b1714"], }; diff --git a/src/components/Banner.tsx b/src/components/Banner.tsx index c338108..ee79fbe 100644 --- a/src/components/Banner.tsx +++ b/src/components/Banner.tsx @@ -25,7 +25,7 @@ export default function Banner() { if (!visible) return null; const linkClass = - "underline underline-offset-4 decoration-[#aac992] hover:text-white transition-colors"; + "underline underline-offset-4 decoration-[#9cc47c] hover:text-white transition-colors"; return (
@@ -203,7 +203,7 @@ export default function Layout() { className={({ isActive }) => `text-base font-bold pb-1 border-b-2 transition-colors duration-200 ${ isActive - ? "text-white border-[#aac992]" + ? "text-white border-[#9cc47c]" : "text-white/75 hover:text-white border-transparent" }` } @@ -261,8 +261,8 @@ export default function Layout() { aria-current={activeSection === section.hash ? "location" : undefined} className={`text-sm transition-colors duration-200 ${ activeSection === section.hash - ? "text-[#aac992]" - : "text-white/75 hover:text-[#aac992]" + ? "text-[#9cc47c]" + : "text-white/75 hover:text-[#9cc47c]" }`} > {section.label} @@ -295,7 +295,7 @@ export default function Layout() { {mobileMenuOpen && (
`block text-2xl font-bold py-3 transition-colors ${ - isActive ? "text-[#aac992]" : "text-white hover:text-[#c2ffd6]" + isActive ? "text-[#9cc47c]" : "text-white hover:text-[#f0bd4f]" }` } > @@ -338,7 +338,7 @@ export default function Layout() { setMobileMenuOpen(false)} > {section.label} diff --git a/src/components/PageBackdrop.css b/src/components/PageBackdrop.css index ff21d1d..98c88e4 100644 --- a/src/components/PageBackdrop.css +++ b/src/components/PageBackdrop.css @@ -3,11 +3,11 @@ (PageBackdrop.tsx places them) Flat fills only: no blur, no gradient, no glow. Light mode uses - the palette's four palest shades at 60%, dark mode its dark - shades (two deepened a step) at 30% over the ink background. - Every text token reads at 4.5:1 or better on each shade even at - full strength, so however many circles overlap, text stays - readable (the lowest, 4.66:1, is the danger red on #004552). + the palette's lightest teal, green and amber at 60%, dark mode + their darkest at 30% over the ink background. Every text token + reads at 4.5:1 or better on each shade even at full strength, so + however many circles overlap, text stays readable (the lowest is + 4.62:1, the link teal on the light green). ═══════════════════════════════════════════════════════════════ */ .page-backdrop { @@ -18,10 +18,10 @@ pointer-events: none; --pb-opacity: 0.6; - --pb-0: #c2f6ff; - --pb-1: #dfebd6; - --pb-2: #c2ffd6; - --pb-3: #c2fbff; + --pb-0: #d6f5fa; + --pb-1: #e6f0dd; + --pb-2: #fdf1d6; + --pb-3: #d6f5fa; } /* A circle's place: across by its left, down its layer's whole @@ -71,18 +71,18 @@ toggle's choice, or the system's when there is none. */ :root[data-theme="dark"] .page-backdrop { --pb-opacity: 0.3; - --pb-0: #004552; - --pb-1: #27371b; - --pb-2: #003f45; /* #004c52 deepened */ - --pb-3: #00441a; /* #00521b deepened */ + --pb-0: #003a45; + --pb-1: #23361a; + --pb-2: #4a2e00; + --pb-3: #003a45; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-backdrop { --pb-opacity: 0.3; - --pb-0: #004552; - --pb-1: #27371b; - --pb-2: #003f45; /* #004c52 deepened */ - --pb-3: #00441a; /* #00521b deepened */ + --pb-0: #003a45; + --pb-1: #23361a; + --pb-2: #4a2e00; + --pb-3: #003a45; } } diff --git a/src/components/QrCode.tsx b/src/components/QrCode.tsx index 52be5d1..a16f58a 100644 --- a/src/components/QrCode.tsx +++ b/src/components/QrCode.tsx @@ -34,7 +34,7 @@ const MARGIN = 4 /* Dark enough to scan as black; the site's deep teal. */ export const QR_INK = '#001011' export const QR_PAPER = '#ffffff' -export const QR_DOVE = '#008fa8' +export const QR_DOVE = '#00748a' /* Badge side as a share of the code's width. */ const BADGE = 0.24 diff --git a/src/components/VideoPlayer.tsx b/src/components/VideoPlayer.tsx index 3c03e00..f58cc4b 100644 --- a/src/components/VideoPlayer.tsx +++ b/src/components/VideoPlayer.tsx @@ -80,7 +80,7 @@ export default function VideoPlayer({ className="block aspect-video w-full object-cover" /> ) : ( - + )}
{(when || where) && ( @@ -504,7 +504,7 @@ function EventPanel({ event }: { event: HeroEvent }) { className={`inline-flex items-center gap-2 btn px-6 py-3 transition-transform hover:scale-105 ${ index === 0 ? 'text-[#001011]' : 'border border-white/35 text-white hover:bg-white/10' }`} - style={index === 0 ? { background: '#c2ffd6' } : undefined} + style={index === 0 ? { background: '#f0bd4f' } : undefined} > {link.label} diff --git a/src/pages/sections/home/Pathfinder.tsx b/src/pages/sections/home/Pathfinder.tsx index 787096c..4dd509e 100644 --- a/src/pages/sections/home/Pathfinder.tsx +++ b/src/pages/sections/home/Pathfinder.tsx @@ -64,7 +64,7 @@ function PathIcon({ value }: { value?: string | null }) { } // The site's accent family, in turn (color.ts). -const PATH_ACCENTS = [ACCENTS.teal, ACCENTS.green, ACCENTS.olive, ACCENTS.deep] +const PATH_ACCENTS = [ACCENTS.teal, ACCENTS.green, ACCENTS.amber, ACCENTS.deep] export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) { const [selected, setSelected] = useState(0) diff --git a/src/pages/sections/home/StatsBand.tsx b/src/pages/sections/home/StatsBand.tsx index 8544ed2..4578165 100644 --- a/src/pages/sections/home/StatsBand.tsx +++ b/src/pages/sections/home/StatsBand.tsx @@ -47,7 +47,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) { id={id} ref={ref} className="relative overflow-hidden py-24" - style={{ background: '#004552' }} + style={{ background: '#003a45' }} >

@@ -64,7 +64,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) { >
- {stat.suffix && {stat.suffix}} + {stat.suffix && {stat.suffix}}
{stat.label}