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

@ -65,7 +65,7 @@ import {
/* One card per section. scroll-mt clears the sticky "Jump to" bar
below lg, and leaves a little air above the card on desktop. */
const CARD = "mt-6 scroll-mt-16 rounded-2xl border border-brand/20 bg-surface p-5 lg:scroll-mt-6";
const CARD = "mt-6 scroll-mt-16 border border-brand/20 bg-surface p-5 lg:scroll-mt-6";
const sectionId = (name) => `section-${slugify(name)}`;
@ -505,7 +505,7 @@ export default function EntityEdit() {
type="button"
onClick={save}
disabled={saving || !dirty}
className="rounded-full bg-action px-6 py-2 font-semibold text-white transition-colors hover:bg-action-hover disabled:bg-muted/25"
className="btn bg-action px-6 py-2 text-white transition-colors hover:bg-action-hover disabled:bg-muted/25"
>
{saving ? "Saving…" : isNew ? "Create" : "Save changes"}
</button>
@ -513,7 +513,7 @@ export default function EntityEdit() {
<button
type="button"
onClick={remove}
className="rounded-full border border-danger/40 px-4 py-2 text-sm font-medium text-danger transition-colors hover:bg-danger-tint"
className="btn border border-danger/40 px-4 py-2 text-sm text-danger transition-colors hover:bg-danger-tint"
>
Delete
</button>
@ -541,7 +541,7 @@ export default function EntityEdit() {
<button
type="button"
onClick={load}
className="rounded-full border border-danger/40 px-3 py-1 text-xs font-medium"
className="btn border border-danger/40 px-3 py-1 text-xs"
>
Reload
</button>
@ -566,7 +566,7 @@ function ImportedNote() {
`${summary.tables} tables`,
];
return (
<p role="status" className="mt-4 rounded-xl border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<p role="status" className="mt-4 border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
Imported from Word: {parts.join(", ")}.
{summary.skipped?.images
? ` ${summary.skipped.images} image${summary.skipped.images === 1 ? " was" : "s were"} not carried over; add them as Image blocks.`
@ -583,11 +583,11 @@ function ImportedNote() {
function RequestedChanges({ request, isNew, form, onUse, onAdd }: any) {
const [done, setDone] = useState<Set<string>>(() => new Set());
const mark = (key: string) => setDone((prev) => new Set(prev).add(key));
const button = "rounded-full border border-link px-3 py-0.5 text-xs font-semibold text-link transition-colors hover:bg-tint";
const button = "btn border border-link px-3 py-0.5 text-xs text-link transition-colors hover:bg-tint";
if (isNew) {
return (
<p role="status" className="mt-4 rounded-xl border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<p role="status" className="mt-4 border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
Filled in from content request #{request.request}. Check it, fill in the rest, then Create. It isn't saved yet.
</p>
);
@ -599,14 +599,14 @@ function RequestedChanges({ request, isNew, form, onUse, onAdd }: any) {
];
if (items.length === 0) {
return (
<p className="mt-4 rounded-xl border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<p className="mt-4 border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
Content request #{request.request} has no details to copy; its message is in Forms → Content requests.
</p>
);
}
return (
<div className="mt-4 rounded-xl border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<div className="mt-4 border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<p className="font-semibold">Requested in content request #{request.request}</p>
<p className="mt-0.5 text-xs text-muted">Use what should change, then Save changes.</p>
<ul className="mt-3 space-y-2">