Compare commits

...

2 commits

Author SHA1 Message Date
6f86a113e0 Merge pull request 'Revised palette: teal, green, amber, ink' (#19) from palette-test into main 2026-09-30 23:59:33 +01:00
Zaldimmar
79f1d09eef 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 <noreply@anthropic.com>
2026-09-30 16:51:14 -05:00
21 changed files with 116 additions and 116 deletions

View file

@ -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"],
};

View file

@ -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 (
<div

View file

@ -41,13 +41,13 @@ const Footer_Links = [
];
const footerLinkClass =
"text-white/65 hover:text-[#aac992] text-sm transition-colors";
"text-white/65 hover:text-[#9cc47c] text-sm transition-colors";
const pageLinkClass =
"text-white/80 hover:text-[#aac992] text-sm font-semibold transition-colors";
"text-white/80 hover:text-[#9cc47c] text-sm font-semibold transition-colors";
const sectionLinkClass =
"text-white/65 hover:text-[#aac992] text-sm transition-colors";
"text-white/65 hover:text-[#9cc47c] text-sm transition-colors";
const headingClass = "text-white/90 text-sm font-semibold mb-4";

View file

@ -187,7 +187,7 @@ export default function Layout() {
<nav
className="flex items-center justify-between px-6 py-4"
aria-label="Site"
style={{ background: "rgba(0, 69, 82, 0.92)" }}
style={{ background: "rgba(0, 58, 69, 0.92)" }}
>
<div className="flex items-center gap-8">
<Link to="/" aria-label="Next Generation of Unity home" className="inline-block">
@ -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 && (
<div
className="fixed inset-0 z-[60] flex flex-col items-center justify-center overflow-y-auto py-16"
style={{ background: "rgba(0, 69, 82, 0.97)" }}
style={{ background: "rgba(0, 58, 69, 0.97)" }}
role="dialog"
aria-modal="true"
aria-label="Menu"
@ -321,7 +321,7 @@ export default function Layout() {
end={page.path === "/"}
className={({ isActive }) =>
`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() {
<a
key={section.hash}
href={section.hash}
className="text-white/80 text-lg py-2 hover:text-[#c2ffd6] transition-colors"
className="text-white/80 text-lg py-2 hover:text-[#f0bd4f] transition-colors"
onClick={() => setMobileMenuOpen(false)}
>
{section.label}

View file

@ -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;
}
}

View file

@ -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

View file

@ -80,7 +80,7 @@ export default function VideoPlayer({
className="block aspect-video w-full object-cover"
/>
) : (
<span className="block aspect-video w-full bg-[#004552]" />
<span className="block aspect-video w-full bg-[#003a45]" />
)}
<span
aria-hidden="true"

View file

@ -111,8 +111,8 @@ const button =
const CHECKER = {
backgroundColor: "#fff",
backgroundImage:
"linear-gradient(45deg,#c2fbff 25%,transparent 25%),linear-gradient(-45deg,#c2fbff 25%,transparent 25%)," +
"linear-gradient(45deg,transparent 75%,#c2fbff 75%),linear-gradient(-45deg,transparent 75%,#c2fbff 75%)",
"linear-gradient(45deg,#f5f9f8 25%,transparent 25%),linear-gradient(-45deg,#f5f9f8 25%,transparent 25%)," +
"linear-gradient(45deg,transparent 75%,#f5f9f8 75%),linear-gradient(-45deg,transparent 75%,#f5f9f8 75%)",
backgroundSize: "12px 12px",
backgroundPosition: "0 0,0 6px,6px -6px,-6px 0",
};

View file

@ -145,7 +145,7 @@ const inputLocked =
else the brand teal. */
function colorPlaceholder(field, row): string {
const own = typeof field.placeholder === "function" ? field.placeholder(row) : field.placeholder;
return own || "#008fa8";
return own || "#00748a";
}
export function getPath(object, path) {

View file

@ -24,15 +24,15 @@
that arrive as data (page accents, event and region colors) go
through withAlpha() and accentText() in src/lib/color.ts. */
--color-ink: #001011; /* headings */
--color-body: #004552; /* body text */
--color-muted: #004c52; /* secondary text, quiet borders */
--color-link: #004552; /* links and teal text */
--color-brand: #008fa8; /* decoration: borders, rings, rules */
--color-action: #004552; /* button fills, under white text */
--color-action-hover: #001011;
--color-surface: #fcfffd; /* page and cards */
--color-tint: #c2f6ff; /* tinted sections and panels */
--color-tint-soft: #e8fcfe; /* hover rows, faint panels */
--color-body: #003a45; /* body text */
--color-muted: #3b5456; /* secondary text, quiet borders */
--color-link: #00748a; /* links and teal text */
--color-brand: #00748a; /* decoration: borders, rings, rules */
--color-action: #00748a; /* button fills, under white text */
--color-action-hover: #003a45;
--color-surface: #f5f9f8; /* page and cards */
--color-tint: #d6f5fa; /* tinted sections and panels */
--color-tint-soft: #e8f5f6; /* hover rows, faint panels */
--color-danger: #b3261e;
--color-danger-tint: #fdf3f2;
@ -65,16 +65,16 @@
@layer base {
:root[data-theme="dark"] {
--color-ink: #fcfffd;
--color-body: #c2f6ff;
--color-muted: #aac992;
--color-link: #5ce7ff;
--color-brand: #008fa8;
--color-action: #004c52;
--color-action-hover: #004552;
--color-ink: #f5f9f8;
--color-body: #d6f5fa;
--color-muted: #a3b8b9;
--color-link: #5cd3e6;
--color-brand: #00748a;
--color-action: #00748a;
--color-action-hover: #003a45;
--color-surface: #001011;
--color-tint: #004552;
--color-tint-soft: #00252b;
--color-tint: #003a45;
--color-tint-soft: #00222a;
--color-danger: #ff8a80;
--color-danger-tint: #3b1714;
--color-raised: color-mix(in srgb, var(--color-tint) 35%, var(--color-surface));
@ -83,16 +83,16 @@
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--color-ink: #fcfffd;
--color-body: #c2f6ff;
--color-muted: #aac992;
--color-link: #5ce7ff;
--color-brand: #008fa8;
--color-action: #004c52;
--color-action-hover: #004552;
--color-ink: #f5f9f8;
--color-body: #d6f5fa;
--color-muted: #a3b8b9;
--color-link: #5cd3e6;
--color-brand: #00748a;
--color-action: #00748a;
--color-action-hover: #003a45;
--color-surface: #001011;
--color-tint: #004552;
--color-tint-soft: #00252b;
--color-tint: #003a45;
--color-tint-soft: #00222a;
--color-danger: #ff8a80;
--color-danger-tint: #3b1714;
--color-raised: color-mix(in srgb, var(--color-tint) 35%, var(--color-surface));
@ -151,12 +151,12 @@ h1, h2, h3, h4, h5, h6 {
transparent background) and would vanish. .logo-plate gives them
a small light backing in dark mode only. */
:root[data-theme="dark"] .logo-plate {
background: #fcfffd;
background: #f5f9f8;
padding: 0.25rem;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .logo-plate {
background: #fcfffd;
background: #f5f9f8;
padding: 0.25rem;
}
}
@ -169,13 +169,13 @@ h1, h2, h3, h4, h5, h6 {
:root,
:root[data-theme="dark"] {
--color-ink: #001011;
--color-body: #004552;
--color-muted: #004c52;
--color-link: #004552;
--color-brand: #008fa8;
--color-surface: #fcfffd;
--color-tint: #c2f6ff;
--color-tint-soft: #e8fcfe;
--color-body: #003a45;
--color-muted: #3b5456;
--color-link: #00748a;
--color-brand: #00748a;
--color-surface: #f5f9f8;
--color-tint: #d6f5fa;
--color-tint-soft: #e8f5f6;
--color-danger: #b3261e;
--color-danger-tint: #fdf3f2;
--accent-text-mix: 100%;

View file

@ -48,31 +48,31 @@ export const BRAND = 'var(--color-action)'
export const ACCENTS = {
teal: BRAND,
deep: '#004c52',
green: '#00521b',
olive: '#27371b',
deep: '#003a45',
green: '#4a7431',
amber: '#8f5b00',
}
/* ── The palette ─────────────────────────────────────────────────
The site's 16 colors: four families, each a column of the grid
(its primary first). The theme tokens above are chosen from these;
so is anything drawn from the palette as data (a person's initials
tile, the page background, the admin home's sections). Light
shades are for fills behind text, dark shades for text and fills
under white text; the primaries are for decoration only (#008fa8
is 3.8:1 on the page, #88b668 2.3:1). */
The site's 16 colors: four families, each [main, darkest, light,
lightest]. The theme tokens above are chosen from these; so is
anything drawn from the palette as data (a person's initials
tile, the page background, the admin home's sections). Each main
shade reads as text on white and takes white text on it (5:1 or
better); the darkest are for text, the light and lightest for
fills behind text. */
export const PALETTE = {
teal: ['#008fa8', '#004552', '#5ce7ff', '#c2f6ff'],
green: ['#88b668', '#dfebd6', '#aac992', '#27371b'],
mint: ['#fcfffd', '#c2ffd6', '#00b83d', '#00521b'],
ink: ['#001011', '#004c52', '#5cf4ff', '#c2fbff'],
teal: ['#00748a', '#003a45', '#5cd3e6', '#d6f5fa'],
green: ['#4a7431', '#23361a', '#9cc47c', '#e6f0dd'],
amber: ['#8f5b00', '#4a2e00', '#f0bd4f', '#fdf1d6'],
ink: ['#3b5456', '#001011', '#a3b8b9', '#f5f9f8'],
} as const
/* Fills that take the page's ink text (#001011, 15:1 or better) and
fills that take white text (9:1 or better), for things colored
/* Fills that take the page's ink text (#001011, 9:1 or better) and
fills that take white text (5:1 or better), for things colored
from the palette by data, like an initials tile. */
export const PALETTE_LIGHT = ['#c2f6ff', '#dfebd6', '#c2ffd6', '#c2fbff', '#aac992', '#5ce7ff'] as const
export const PALETTE_DARK = ['#004552', '#27371b', '#00521b', '#004c52'] as const
export const PALETTE_LIGHT = ['#d6f5fa', '#e6f0dd', '#fdf1d6', '#f0bd4f', '#9cc47c', '#5cd3e6'] as const
export const PALETTE_DARK = ['#003a45', '#23361a', '#4a2e00', '#00748a', '#4a7431', '#8f5b00', '#3b5456'] as const
/* A palette fill for something colored by its name, like the
initials tile of a person with no photo: the same name always gets

View file

@ -41,7 +41,7 @@ const SECTIONS = [
title: "Unity Regions",
blurb:
"The regional organizations that support groups and host their own gatherings.",
accent: "#004c52",
accent: "#3b5456",
Component: OrgListVertical,
request: { type: "region", label: "Request a region update" },
props: {
@ -59,7 +59,7 @@ const SECTIONS = [
title: "Partner Organizations",
blurb:
"Organizations we collaborate with across the Unity movement and beyond.",
accent: ACCENTS.olive,
accent: ACCENTS.amber,
Component: OrgListCards,
request: { type: "partner", label: "Request a partner listing" },
props: {

View file

@ -34,7 +34,7 @@ const SECTIONS = [
id: "committees",
title: "Committees & Volunteers",
blurb: "Additional roles and contributors.",
accent: ACCENTS.olive,
accent: ACCENTS.amber,
content: <ComingSoon what="this list of committees and volunteers" />,
},
{

View file

@ -25,7 +25,7 @@ const SECTIONS = [
id: "partner",
title: "Partner Resources",
blurb: "Material for the organizations we collaborate with.",
accent: ACCENTS.olive,
accent: ACCENTS.amber,
content: <ComingSoon what="resources for partners" />,
},
];

View file

@ -66,7 +66,7 @@ const SECTIONS = [
id: "partner",
title: "Partner Events",
blurb: "Retreats hosted by organizations we collaborate with.",
accent: ACCENTS.olive,
accent: ACCENTS.amber,
Component: EventListCards,
props: { scope: "partner", ...RETREATS },
views: { ...CARD_VIEWS, default: "grid" },
@ -98,7 +98,7 @@ const SECTIONS = [
id: "other",
title: "Other Events",
blurb: "Everything that doesn't fit the categories above.",
accent: ACCENTS.olive,
accent: ACCENTS.amber,
Component: EventListCards,
props: { scope: "other", ...RETREATS_ONLY },
views: { ...CARD_VIEWS, default: "grid" },

View file

@ -25,7 +25,7 @@ import { accentText } from '../../lib/color.ts'
const MUTED = "var(--color-muted)";
const INK = "var(--color-body)";
const FALLBACK_COLOR = "#004c52";
const FALLBACK_COLOR = "#3b5456";
/* Wide enough for a logo beside two lines of text, narrow enough
that three fit on a laptop. The grid drops a column rather than

View file

@ -46,7 +46,7 @@ const CONTENT_MAX = "88rem";
const MUTED = "var(--color-muted)";
const RULE = "color-mix(in srgb, var(--color-muted) 25%, transparent)";
const INK = "var(--color-body)";
const FALLBACK_COLOR = "#004c52";
const FALLBACK_COLOR = "#3b5456";
/* organizations.color is nullable; an SVG fill left undefined paints
black, so an uncolored region takes the same fallback as a card. */

View file

@ -44,7 +44,7 @@ import { accentText } from '../../lib/color.ts'
const MUTED = "var(--color-muted)";
const RULE = "color-mix(in srgb, var(--color-muted) 25%, transparent)";
const INK = "var(--color-body)";
const FALLBACK_COLOR = "#004c52";
const FALLBACK_COLOR = "#3b5456";
/* ── Row button ───────────────────────────────────────────────
Deliberately a sibling of the summary button rather than inside

View file

@ -130,12 +130,12 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
</p>
) : feature === 'event' ? (
<p className="mb-6 inline-flex items-center gap-3 bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<Star className="text-[#c2ffd6]" weight="fill" aria-hidden="true" />
<Star className="text-[#f0bd4f]" weight="fill" aria-hidden="true" />
Featured event
</p>
) : feature === 'video' ? (
<p className="mb-6 inline-flex items-center gap-3 bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<Play className="text-[#c2ffd6]" weight="fill" aria-hidden="true" />
<Play className="text-[#f0bd4f]" weight="fill" aria-hidden="true" />
Featured video
{hero.video?.title && (
<span className="normal-case tracking-normal text-white/75">
@ -145,7 +145,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
</p>
) : (
hero.eyebrow && (
<p className="mb-6 inline-block border border-white/20 px-4 py-1.5 text-xs font-semibold uppercase tracking-[0.25em] text-[#c2ffd6]">
<p className="mb-6 inline-block border border-white/20 px-4 py-1.5 text-xs font-semibold uppercase tracking-[0.25em] text-[#f0bd4f]">
{hero.eyebrow}
</p>
)
@ -189,7 +189,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
One set: that one alone, in its own style. */
const SLANT = '1.75rem'
const PRIMARY_FILL = '#c2ffd6'
const PRIMARY_FILL = '#f0bd4f'
const PRIMARY_TEXT = '#001011'
const HALF = 'relative flex items-center gap-2 px-8 py-4 text-lg transition-colors duration-200 focus-visible:outline-offset-[-6px]'
@ -248,7 +248,7 @@ function HeroActions({ primary, secondary }: { primary: HeroLink; secondary: Her
/* ── Brand backdrop ──────────────────────────────────────────── */
const BRAND_FILL = '#004552'
const BRAND_FILL = '#003a45'
function BrandBackdrop() {
return (
@ -488,7 +488,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
{event.title}
</Link>
</h2>
{event.theme && <p className="mt-1 text-lg font-semibold text-[#c2ffd6]">"{event.theme}"</p>}
{event.theme && <p className="mt-1 text-lg font-semibold text-[#f0bd4f]">"{event.theme}"</p>}
</div>
{(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}
>
<PlatformIcon platform={link.platform} />
{link.label}

View file

@ -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)

View file

@ -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' }}
>
<div className="relative mx-auto max-w-6xl px-6">
<h2 className="font-display text-3xl font-bold text-white md:text-4xl">
@ -64,7 +64,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
>
<dd className="font-display text-5xl font-extrabold leading-none text-white md:text-6xl">
<CountUp value={stat.value} run={seen} />
{stat.suffix && <span className="text-[#c2ffd6]">{stat.suffix}</span>}
{stat.suffix && <span className="text-[#f0bd4f]">{stat.suffix}</span>}
</dd>
<dt className="mt-3 text-sm font-semibold uppercase tracking-widest text-white/70">
{stat.label}