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

@ -91,7 +91,7 @@ export function FolderTabs({
aria-selected={value === folder}
onClick={() => onChange(folder)}
className={
"rounded-full px-3 py-1 text-sm transition-colors " +
"btn px-3 py-1 text-sm transition-colors " +
(value === folder ? "bg-action font-semibold text-white" : "border border-muted/25 text-muted hover:border-brand/50")
}
>
@ -103,7 +103,7 @@ export function FolderTabs({
}
const button =
"rounded-full border border-brand px-3 py-1 text-sm font-medium text-link " +
"btn border border-brand px-3 py-1 text-sm text-link " +
"transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50";
/* A light checkerboard, so a white logo on a transparent background
@ -111,8 +111,8 @@ const button =
const CHECKER = {
backgroundColor: "#fff",
backgroundImage:
"linear-gradient(45deg,#e6eef0 25%,transparent 25%),linear-gradient(-45deg,#e6eef0 25%,transparent 25%)," +
"linear-gradient(45deg,transparent 75%,#e6eef0 75%),linear-gradient(-45deg,transparent 75%,#e6eef0 75%)",
"linear-gradient(45deg,#c2fbff 25%,transparent 25%),linear-gradient(-45deg,#c2fbff 25%,transparent 25%)," +
"linear-gradient(45deg,transparent 75%,#c2fbff 75%),linear-gradient(-45deg,transparent 75%,#c2fbff 75%)",
backgroundSize: "12px 12px",
backgroundPosition: "0 0,0 6px,6px -6px,-6px 0",
};
@ -231,7 +231,7 @@ export function UploadButton({
type="checkbox"
checked={keepOriginal}
onChange={(e) => setKeepOriginal(e.target.checked)}
className="h-3.5 w-3.5 rounded border-muted/40 text-link"
className="h-3.5 w-3.5 border-muted/40 text-link"
/>
Keep original
</label>
@ -268,7 +268,7 @@ export function MediaGrid({
const isSelected = selected === item.url;
const thumb = (
<>
<div className="aspect-[4/3] overflow-hidden rounded-lg" style={CHECKER}>
<div className="aspect-[4/3] overflow-hidden" style={CHECKER}>
{item.content_type.startsWith("video/") ? (
// A still of the first frame; metadata only, not the file.
<video src={item.url} preload="metadata" muted className="h-full w-full bg-black object-contain" />
@ -295,7 +295,7 @@ export function MediaGrid({
return (
<li
key={item.id}
className={`rounded-xl border bg-surface p-2 ${
className={`border bg-surface p-2 ${
isSelected ? "border-brand ring-2 ring-brand/30" : "border-muted/20"
}`}
>
@ -362,9 +362,9 @@ function RequestImages({ folder, onPick }: { folder?: string; onPick: (item: Med
{error && <p className="mb-3 text-sm text-danger">{error}</p>}
<ul className="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4">
{files.map((file) => (
<li key={file.id} className="rounded-xl border border-muted/20 bg-surface p-2">
<li key={file.id} className="border border-muted/20 bg-surface p-2">
<button type="button" disabled={busy !== null} onClick={() => pick(file)} className="block w-full text-left disabled:opacity-60">
<div className="aspect-[4/3] overflow-hidden rounded-lg" style={CHECKER}>
<div className="aspect-[4/3] overflow-hidden" style={CHECKER}>
{/* Straight from Drive through the server; private to the admin. */}
<img
src={`/api/admin/feedback/${file.feedback_id}/files/${file.id}`}
@ -422,7 +422,7 @@ export function MediaPicker({
// A click on the backdrop lands on the dialog itself.
if (e.target === dialogRef.current) dialogRef.current?.close();
}}
className="m-auto w-[min(56rem,calc(100vw-2rem))] rounded-2xl p-0 backdrop:bg-[#0f2f36]/40"
className="m-auto w-[min(56rem,calc(100vw-2rem))] p-0 backdrop:bg-[#001011]/40"
>
<div className="flex max-h-[85vh] flex-col">
<div className="flex flex-wrap items-center gap-3 border-b border-brand/15 px-5 py-4">
@ -432,13 +432,13 @@ export function MediaPicker({
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder="Search by file name"
className="ml-auto w-56 rounded-lg border border-muted/25 px-3 py-1.5 text-sm outline-none focus:border-brand"
className="ml-auto w-56 border border-muted/25 px-3 py-1.5 text-sm outline-none focus:border-brand"
/>
<button
type="button"
onClick={() => dialogRef.current?.close()}
aria-label="Close"
className="flex h-8 w-8 items-center justify-center rounded-full text-muted hover:bg-tint"
className="flex h-8 w-8 items-center justify-center btn text-muted hover:bg-tint"
>
<X aria-hidden="true" weight="bold" className="h-4 w-4" />
</button>
@ -525,7 +525,7 @@ export function ImageInput({
return (
<div className="flex gap-3">
<div
className="flex h-20 w-20 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-muted/20"
className="flex h-20 w-20 shrink-0 items-center justify-center overflow-hidden border border-muted/20"
style={CHECKER}
>
{src && !broken ? (