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

@ -97,7 +97,7 @@ export default function EntityList() {
{canWrite && (
<Link
to={`/admin/${manifest.key}/new`}
className={`${manifest.importer ? "" : "ml-auto "}rounded-full bg-action px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-action-hover`}
className={`${manifest.importer ? "" : "ml-auto "}btn bg-action px-4 py-2 text-sm text-white transition-colors hover:bg-action-hover`}
>
New {manifest.singular}
</Link>
@ -112,7 +112,7 @@ export default function EntityList() {
<select
value={params.get(filter.key) ?? ""}
onChange={(e) => setParam(filter.key, e.target.value)}
className="mt-1 rounded-lg border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand"
className="mt-1 border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand"
>
<option value="">All</option>
{labelFor(filter).map(([value, label]) => (
@ -131,12 +131,12 @@ export default function EntityList() {
placeholder="Search"
onChange={(e) => setQuery(e.target.value)}
onKeyDown={(e) => e.key === "Enter" && setParam("q", query.trim())}
className="rounded-full border border-muted/25 bg-surface px-4 py-1.5 text-sm text-body outline-none focus:border-brand"
className=" border border-muted/25 bg-surface px-4 py-1.5 text-sm text-body outline-none focus:border-brand"
/>
<button
type="button"
onClick={() => setParam("q", query.trim())}
className="rounded-full border border-muted/25 px-4 py-1.5 text-sm text-muted hover:border-brand/50"
className="btn border border-muted/25 px-4 py-1.5 text-sm text-muted hover:border-brand/50"
>
Search
</button>
@ -146,14 +146,14 @@ export default function EntityList() {
{error && (
<p
role="alert"
className="mt-6 rounded-xl border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
className="mt-6 border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
>
{error}
</p>
)}
{/* Rows */}
<div className="mt-6 overflow-x-auto rounded-2xl border border-brand/20 bg-surface">
<div className="mt-6 overflow-x-auto border border-brand/20 bg-surface">
<table className="w-full text-left text-sm">
<thead className="border-b border-muted/15 text-xs text-muted">
<tr>
@ -245,7 +245,7 @@ function ImportButton({ manifest }: { manifest: any }) {
</span>
)}
<label
className={`cursor-pointer rounded-full border border-link px-4 py-2 text-sm font-semibold text-link transition-colors hover:bg-tint ${
className={`cursor-pointer btn border border-link px-4 py-2 text-sm text-link transition-colors hover:bg-tint ${
busy ? "pointer-events-none opacity-60" : ""
}`}
>