Adopt the new palette; square corners, superellipse buttons

The theme defaults (light and dark) come from the 16-color grid,
kept as PALETTE in src/lib/color.ts; every text pair passes the
admin's 4.5:1 check. Nothing is rounded any more except buttons,
which share one btn utility (Poppins Bold, a superellipse corner
where the browser has corner-shape) and true dots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 14:40:39 -05:00
parent ecdcd4ec37
commit d81f7bd856
62 changed files with 416 additions and 384 deletions

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 = "#4a6b72";
const FALLBACK_COLOR = "#004c52";
/* organizations.color is nullable; an SVG fill left undefined paints
black, so an uncolored region takes the same fallback as a card. */
@ -291,7 +291,7 @@ function LegendButton({ region, selected, setSelected, hovered, setHovered }) {
onFocus={() => setHovered(region.id)}
onBlur={() => setHovered(null)}
aria-pressed={selected === region.id}
className="flex items-center gap-2 py-1.5 px-3 rounded-lg text-sm font-bold transition-all duration-200"
className="flex items-center gap-2 py-1.5 px-3 text-sm font-bold transition-all duration-200"
style={{
border: `1px solid ${colorOf(region)}`,
background: on ? colorOf(region) : "transparent",
@ -342,7 +342,7 @@ function Legend({ domestic, international, onMapIds, ...props }: any) {
{selected && (
<button
onClick={() => setSelected(null)}
className="py-1.5 px-3 rounded-lg text-sm font-bold underline"
className="py-1.5 px-3 text-sm font-bold underline"
style={{ color: FALLBACK_COLOR }}
>
Show all
@ -470,7 +470,7 @@ function RegionBlock({
function GroupCard({ group, color, open, onOpen }) {
return (
<div
className="rounded-2xl p-4 flex items-start gap-4 transition-all duration-200"
className="p-4 flex items-start gap-4 transition-all duration-200"
style={{
border: `1px solid ${color}`,
background: open ? `${withAlpha(color, 8)}` : "transparent",
@ -499,7 +499,7 @@ function GroupCard({ group, color, open, onOpen }) {
onClick={onOpen}
aria-expanded={open}
aria-label={`${open ? "Hide" : "View"} details for ${group.name}`}
className="h-9 w-9 rounded-full flex items-center justify-center transition-transform duration-200 hover:scale-110"
className="h-9 w-9 btn flex items-center justify-center transition-transform duration-200 hover:scale-110"
style={{
border: `1px solid ${color}`,
color,
@ -540,7 +540,7 @@ function GroupDetail({ group, region, onClose }) {
return (
<div
className="rounded-2xl p-6 mb-6"
className="p-6 mb-6"
style={{ border: `2px solid ${colorOf(region)}`, background: `${withAlpha(colorOf(region), 6)}` }}
>
<div className="flex items-start gap-4">
@ -554,7 +554,7 @@ function GroupDetail({ group, region, onClose }) {
<button
onClick={onClose}
aria-label="Close details"
className="shrink-0 h-8 w-8 rounded-full flex items-center justify-center text-lg font-bold transition-transform duration-200 hover:scale-110"
className="shrink-0 h-8 w-8 btn flex items-center justify-center text-lg transition-transform duration-200 hover:scale-110"
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
>
<X size={20} weight="bold" aria-hidden="true" />
@ -582,7 +582,7 @@ function GroupDetail({ group, region, onClose }) {
{orgPath(group) && (
<Link
to={orgPath(group)!}
className="py-2 px-5 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
className="py-2 px-5 font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ background: colorOf(region), color: readableOn(colorOf(region)) }}
>
Group page
@ -593,7 +593,7 @@ function GroupDetail({ group, region, onClose }) {
href={group.website}
target="_blank"
rel="noopener noreferrer"
className="py-2 px-5 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
className="py-2 px-5 font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
>
Visit site
@ -603,7 +603,7 @@ function GroupDetail({ group, region, onClose }) {
{group.email && (
<a
href={`mailto:${group.email}`}
className="py-2 px-5 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
className="py-2 px-5 font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
>
Get in touch
@ -695,7 +695,7 @@ export function OrgMapToggle({ view, setView, accent }) {
return (
<div
className="inline-flex rounded-xl overflow-hidden shrink-0"
className="inline-flex overflow-hidden shrink-0"
style={{ border: `1px solid ${accent}` }}
role="group"
aria-label="Change how groups are displayed"