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

@ -69,7 +69,7 @@ function Block({ title, note, children }: any) {
function Stat({ label, value }) {
return (
<div className="rounded-xl border border-brand/20 bg-surface px-4 py-3">
<div className="border border-brand/20 bg-surface px-4 py-3">
<div className="text-xs font-medium uppercase tracking-wider text-muted/70">
{label}
</div>
@ -119,7 +119,7 @@ function AccessGroups({ access, onSynced }) {
}
const button =
"rounded-full border border-brand px-4 py-1.5 text-sm font-medium text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50";
"btn border border-brand px-4 py-1.5 text-sm text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50";
return (
<Block
@ -154,7 +154,7 @@ function AccessGroups({ access, onSynced }) {
value={email}
placeholder="someone@nextgenerationofunity.org"
onChange={(e) => setEmail(e.target.value)}
className="min-w-0 flex-1 rounded-lg border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25 sm:max-w-sm"
className="min-w-0 flex-1 border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25 sm:max-w-sm"
/>
<button type="button" className={button} disabled={busy !== null || !email.trim()} onClick={() => send("check")}>
{busy === "check" ? "Checking…" : "Check their groups"}
@ -272,7 +272,7 @@ export default function AdminPanel() {
<button
type="button"
onClick={load}
className="mt-3 rounded-full border border-brand px-4 py-1.5 text-sm font-medium text-link transition-colors hover:bg-tint"
className="mt-3 btn border border-brand px-4 py-1.5 text-sm text-link transition-colors hover:bg-tint"
>
Try again
</button>
@ -311,7 +311,7 @@ export default function AdminPanel() {
{content.map((row) => (
<span
key={row.label}
className="rounded-full border border-brand/20 bg-surface px-3 py-1 text-sm text-muted"
className=" border border-brand/20 bg-surface px-3 py-1 text-sm text-muted"
>
{row.label}{" "}
<strong className="font-semibold text-ink">
@ -326,7 +326,7 @@ export default function AdminPanel() {
title="Accounts"
note="Changing a role or disabling an account signs that person out."
>
<div className="overflow-x-auto rounded-2xl border border-brand/20 bg-surface">
<div className="overflow-x-auto border border-brand/20 bg-surface">
<table className="w-full min-w-[46rem] text-left text-sm">
<thead className="border-b border-brand/15 text-xs uppercase tracking-wider text-muted/70">
<tr>
@ -378,7 +378,7 @@ export default function AdminPanel() {
value={row.role}
disabled={locked || busy || fromGroup}
onChange={(e) => changeRole(row, e.target.value)}
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"
className="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={
fromGroup
? "The role comes from this person's Google group."
@ -418,7 +418,7 @@ export default function AdminPanel() {
type="button"
disabled={locked || busy}
onClick={() => setActive(row, row.is_active ? 0 : 1)}
className={`rounded-full border px-3 py-1 text-xs font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${
className={`btn border px-3 py-1 text-xs transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${
row.is_active
? "border-muted/30 text-muted hover:border-danger/50 hover:text-danger"
: "border-brand/40 text-link hover:bg-tint"