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

@ -119,12 +119,12 @@ const PREVIEWS = {
};
const input =
"w-full rounded-lg border border-muted/25 bg-surface px-3 py-2 text-sm text-body " +
"w-full border border-muted/25 bg-surface px-3 py-2 text-sm text-body "+
"outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25";
/* Same box, but lit by the real input nested inside it. */
const inputShell =
"flex w-full items-center rounded-lg border border-muted/25 bg-surface px-3 py-2 text-sm " +
"flex w-full items-center border border-muted/25 bg-surface px-3 py-2 text-sm "+
"text-body transition-colors focus-within:border-brand focus-within:ring-2 " +
"focus-within:ring-brand/25";
@ -135,7 +135,7 @@ const shellError =
/* Reads as settled fact rather than as an empty box someone forgot
to fill in. */
const inputLocked =
"w-full rounded-lg border border-muted/20 bg-tint-soft px-3 py-2 text-sm " +
"w-full border border-muted/20 bg-tint-soft px-3 py-2 text-sm "+
"text-muted outline-none cursor-default focus:border-muted/40";
/* ── Dotted paths ────────────────────────────────────────────── */
@ -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 || "#138ba0";
return own || "#008fa8";
}
export function getPath(object, path) {
@ -278,7 +278,7 @@ export function Field({ field, value, row, options, error, onChange, onPatch }:
checked={value === 1 || value === true}
disabled={locked}
onChange={(e) => onChange(e.target.checked ? 1 : 0)}
className="h-4 w-4 rounded border-muted/40 text-link focus:ring-brand/40 disabled:opacity-50"
className="h-4 w-4 border-muted/40 text-link focus:ring-brand/40 disabled:opacity-50"
/>
{helpText(field, row) ?? "Yes"}
</label>
@ -315,7 +315,7 @@ export function Field({ field, value, row, options, error, onChange, onPatch }:
value={/^#[0-9a-f]{6}$/i.test(value ?? "") ? value : colorPlaceholder(field, row)}
disabled={locked}
onChange={(e) => onChange(e.target.value)}
className="h-9 w-12 shrink-0 rounded border border-muted/25 bg-surface disabled:opacity-50"
className="h-9 w-12 shrink-0 border border-muted/25 bg-surface disabled:opacity-50"
/>
<input
{...common}
@ -547,7 +547,7 @@ export function Repeater({
<button
type="button"
onClick={add}
className="ml-auto rounded-full border border-brand px-3 py-1 text-sm font-medium text-link transition-colors hover:bg-tint"
className="ml-auto btn border border-brand px-3 py-1 text-sm text-link transition-colors hover:bg-tint"
>
{spec.addLabel ?? "Add"}
</button>
@ -586,7 +586,7 @@ export function Repeater({
endDrag();
}}
className={
`rounded-xl border bg-tint-soft ${expanded ? "p-4" : "px-4 py-2.5"} transition-colors ` +
`border bg-tint-soft ${expanded ? "p-4": "px-4 py-2.5"} transition-colors `+
(over
? "border-brand ring-2 ring-brand/25 "
: "border-muted/20 ") +
@ -710,7 +710,7 @@ export function Repeater({
))}
{spec.preview && PREVIEWS[spec.preview] && (
<div className="mt-4 rounded-lg border border-dashed border-brand/30 bg-surface p-4">
<div className="mt-4 border border-dashed border-brand/30 bg-surface p-4">
<p className="mb-3 text-xs font-semibold uppercase tracking-wider text-muted/70">
Preview
</p>
@ -736,7 +736,7 @@ function IconButton({ label, onClick, danger = false, disabled = false, children
aria-label={label}
title={label}
className={
"flex h-7 w-7 items-center justify-center rounded-full border text-sm leading-none transition-colors " +
"flex h-7 w-7 items-center justify-center btn border text-sm leading-none transition-colors " +
(disabled
? "cursor-default border-muted/20 text-muted/40"
: danger
@ -796,7 +796,7 @@ function TestNoticeInput({
type="button"
disabled={busy || !value?.trim()}
onClick={send}
className="rounded-full border border-brand px-3 py-1 text-sm font-medium text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50"
className="btn border border-brand px-3 py-1 text-sm text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50"
>
{busy ? "Sending…" : "Send a test notice"}
</button>