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:
parent
ecdcd4ec37
commit
d81f7bd856
62 changed files with 416 additions and 384 deletions
|
|
@ -87,7 +87,7 @@ function RequestFiles({ row, canWrite, canRemove }) {
|
|||
}
|
||||
|
||||
if (files.length === 0) return null;
|
||||
const small = "rounded-full border px-3 py-0.5 text-xs font-semibold transition-colors disabled:opacity-60";
|
||||
const small = "btn border px-3 py-0.5 text-xs transition-colors disabled:opacity-60";
|
||||
return (
|
||||
<div className="mt-4">
|
||||
<ul className="space-y-2">
|
||||
|
|
@ -107,7 +107,7 @@ function RequestFiles({ row, canWrite, canRemove }) {
|
|||
)}
|
||||
<span className="text-xs text-muted">{sizeOf(file.size)}</span>
|
||||
{file.missing && (
|
||||
<span className="rounded-full bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">
|
||||
<span className=" bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">
|
||||
Missing from Drive
|
||||
</span>
|
||||
)}
|
||||
|
|
@ -191,7 +191,7 @@ function RequestRecord({ row }) {
|
|||
|
||||
const state = { fromRequest: fromRequest(row) };
|
||||
const button =
|
||||
"rounded-full border border-link px-4 py-1.5 text-sm font-semibold text-link transition-colors hover:bg-tint disabled:opacity-60";
|
||||
"btn border border-link px-4 py-1.5 text-sm text-link transition-colors hover:bg-tint disabled:opacity-60";
|
||||
|
||||
if (row.request_action === "new") {
|
||||
return (
|
||||
|
|
@ -241,7 +241,7 @@ function RequestRecord({ row }) {
|
|||
id={`record-${row.id}`}
|
||||
value={picked}
|
||||
onChange={(e) => setPicked(e.target.value)}
|
||||
className="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"
|
||||
className="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"
|
||||
>
|
||||
{candidates.map((c) => (
|
||||
<option key={c.id} value={c.id}>
|
||||
|
|
@ -308,7 +308,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<article className="rounded-2xl border border-brand/20 bg-surface p-5">
|
||||
<article className="border border-brand/20 bg-surface p-5">
|
||||
<div className="flex flex-wrap items-center gap-x-4 gap-y-2 text-sm">
|
||||
<span className="font-semibold text-body">
|
||||
{row.feedback_type === "content"
|
||||
|
|
@ -316,7 +316,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
|||
: feedbackTypeLabel(row.feedback_type)}
|
||||
</span>
|
||||
<span
|
||||
className={`rounded-full px-2.5 py-0.5 text-xs font-medium ${
|
||||
className={` px-2.5 py-0.5 text-xs font-medium ${
|
||||
STATUS_STYLE[row.status] ?? ""
|
||||
}`}
|
||||
>
|
||||
|
|
@ -367,7 +367,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
|||
value={row.status}
|
||||
disabled={busy}
|
||||
onChange={(e) => save({ status: e.target.value })}
|
||||
className="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"
|
||||
className="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"
|
||||
>
|
||||
{STATUSES.map((s) => (
|
||||
<option key={s} value={s}>
|
||||
|
|
@ -383,14 +383,14 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
|||
disabled={busy}
|
||||
placeholder="Internal note: who's handling it, what was done"
|
||||
onChange={(e) => setNote(e.target.value)}
|
||||
className="mt-3 w-full resize-y rounded-lg border border-muted/25 bg-surface px-3 py-2 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
|
||||
className="mt-3 w-full resize-y border border-muted/25 bg-surface px-3 py-2 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
|
||||
/>
|
||||
{noteDirty && (
|
||||
<button
|
||||
type="button"
|
||||
disabled={busy}
|
||||
onClick={() => save({ admin_note: note })}
|
||||
className="mt-2 rounded-full bg-action px-4 py-1.5 text-sm font-semibold text-white transition-colors hover:bg-action-hover disabled:bg-muted/25"
|
||||
className="mt-2 btn bg-action px-4 py-1.5 text-sm text-white transition-colors hover:bg-action-hover disabled:bg-muted/25"
|
||||
>
|
||||
{busy ? "Saving…" : "Save note"}
|
||||
</button>
|
||||
|
|
@ -412,7 +412,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
|||
type="button"
|
||||
disabled={busy}
|
||||
onClick={remove}
|
||||
className="rounded-full bg-danger px-4 py-1.5 text-sm font-semibold text-white transition-colors hover:bg-[#8f1e18] disabled:bg-muted/25"
|
||||
className="btn bg-danger px-4 py-1.5 text-sm text-white transition-colors hover:bg-[#8f1e18] disabled:bg-muted/25"
|
||||
>
|
||||
{busy ? "Deleting…" : "Delete"}
|
||||
</button>
|
||||
|
|
@ -420,7 +420,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
|||
type="button"
|
||||
disabled={busy}
|
||||
onClick={() => setConfirming(false)}
|
||||
className="rounded-full border border-muted/25 px-4 py-1.5 text-sm text-muted transition-colors hover:border-muted/50"
|
||||
className="btn border border-muted/25 px-4 py-1.5 text-sm text-muted transition-colors hover:border-muted/50"
|
||||
>
|
||||
Keep it
|
||||
</button>
|
||||
|
|
@ -430,7 +430,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
|||
type="button"
|
||||
disabled={busy}
|
||||
onClick={() => setConfirming(true)}
|
||||
className="rounded-full border border-danger/30 px-4 py-1.5 text-sm font-medium text-danger transition-colors hover:bg-danger-tint"
|
||||
className="btn border border-danger/30 px-4 py-1.5 text-sm text-danger transition-colors hover:bg-danger-tint"
|
||||
>
|
||||
Delete
|
||||
</button>
|
||||
|
|
@ -586,7 +586,7 @@ export default function AdminFeedback({ kind = "feedback" }: { kind?: keyof type
|
|||
type="button"
|
||||
onClick={() => setStatus(tab.id)}
|
||||
className={
|
||||
"rounded-full px-4 py-1.5 text-sm transition-colors " +
|
||||
"btn px-4 py-1.5 text-sm transition-colors " +
|
||||
(status === tab.id
|
||||
? "bg-action font-semibold text-white"
|
||||
: "border border-muted/25 text-muted hover:border-brand/50")
|
||||
|
|
@ -606,12 +606,12 @@ export default function AdminFeedback({ kind = "feedback" }: { kind?: keyof type
|
|||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter") setSearch(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 focus:ring-2 focus:ring-brand/25"
|
||||
className=" border border-muted/25 bg-surface px-4 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setSearch(query.trim())}
|
||||
className="rounded-full border border-muted/25 px-4 py-1.5 text-sm text-muted transition-colors hover:border-brand/50"
|
||||
className="btn border border-muted/25 px-4 py-1.5 text-sm text-muted transition-colors hover:border-brand/50"
|
||||
>
|
||||
Search
|
||||
</button>
|
||||
|
|
@ -622,7 +622,7 @@ export default function AdminFeedback({ kind = "feedback" }: { kind?: keyof type
|
|||
{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>
|
||||
|
|
@ -653,7 +653,7 @@ export default function AdminFeedback({ kind = "feedback" }: { kind?: keyof type
|
|||
<button
|
||||
type="button"
|
||||
onClick={() => load(cursor)}
|
||||
className="mt-6 rounded-full border border-brand px-5 py-2 font-semibold text-link transition-colors hover:bg-tint"
|
||||
className="mt-6 btn border border-brand px-5 py-2 text-link transition-colors hover:bg-tint"
|
||||
>
|
||||
Load older
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue