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
|
|
@ -104,7 +104,7 @@ function DeleteControl({
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="rounded-lg bg-danger-tint p-2 text-xs text-body">
|
||||
<div className="bg-danger-tint p-2 text-xs text-body">
|
||||
{uses.length > 0 ? (
|
||||
<p>
|
||||
Still used by{" "}
|
||||
|
|
@ -158,7 +158,7 @@ function FolderControls({ tab, onChanged }: { tab: string; onChanged: (tab: stri
|
|||
const [busy, setBusy] = useState(false);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
const inside = tab === ALL_FOLDERS ? "" : tab;
|
||||
const button = "rounded-full border border-brand px-3 py-1 text-xs font-medium text-link transition-colors hover:bg-tint disabled:opacity-50";
|
||||
const button = "btn border border-brand px-3 py-1 text-xs text-link transition-colors hover:bg-tint disabled:opacity-50";
|
||||
|
||||
async function run(work: () => Promise<string>) {
|
||||
setBusy(true);
|
||||
|
|
@ -204,7 +204,7 @@ function FolderControls({ tab, onChanged }: { tab: string; onChanged: (tab: stri
|
|||
if (e.key === "Escape") setMode(null);
|
||||
}}
|
||||
placeholder={mode === "new" ? "New folder's name" : "New name"}
|
||||
className="rounded-lg border border-muted/25 bg-surface px-3 py-1 text-sm text-body outline-none focus:border-brand"
|
||||
className="border border-muted/25 bg-surface px-3 py-1 text-sm text-body outline-none focus:border-brand"
|
||||
/>
|
||||
<button type="button" className={button} disabled={busy || !name.trim()} onClick={submit}>
|
||||
{mode === "new" ? (inside ? `Make it in ${inside}` : "Make folder") : "Rename"}
|
||||
|
|
@ -264,7 +264,7 @@ function MoveControl({ file, folders, onMoved }: { file: DriveFile; folders: str
|
|||
setBusy(false);
|
||||
}
|
||||
}}
|
||||
className="rounded border border-muted/25 bg-surface px-1.5 py-0.5 text-xs text-body"
|
||||
className="border border-muted/25 bg-surface px-1.5 py-0.5 text-xs text-body"
|
||||
>
|
||||
<option value="">Not in a folder</option>
|
||||
{folders.map((f) => (
|
||||
|
|
@ -304,7 +304,7 @@ function FilesTab() {
|
|||
value={query}
|
||||
onChange={(e) => setQuery(e.target.value)}
|
||||
placeholder="Search by file name"
|
||||
className="ml-auto w-64 rounded-lg border border-muted/25 px-3 py-2 text-sm outline-none focus:border-brand"
|
||||
className="ml-auto w-64 border border-muted/25 px-3 py-2 text-sm outline-none focus:border-brand"
|
||||
/>
|
||||
</div>
|
||||
{!ready && (
|
||||
|
|
@ -406,7 +406,7 @@ function RequestFilesTab() {
|
|||
aria-selected={folder === id}
|
||||
onClick={() => setFolder(id)}
|
||||
className={
|
||||
"rounded-full px-3 py-1 text-sm transition-colors " +
|
||||
"btn px-3 py-1 text-sm transition-colors " +
|
||||
(folder === id ? "bg-action font-semibold text-white" : "border border-muted/25 text-muted hover:border-brand/50")
|
||||
}
|
||||
>
|
||||
|
|
@ -423,7 +423,7 @@ function RequestFilesTab() {
|
|||
{shown.length === 0 ? (
|
||||
<p className="mt-6 text-sm text-muted">No request files here.</p>
|
||||
) : (
|
||||
<ul className="mt-6 divide-y divide-brand/10 rounded-2xl border border-brand/20 bg-surface">
|
||||
<ul className="mt-6 divide-y divide-brand/10 border border-brand/20 bg-surface">
|
||||
{shown.map((file) => (
|
||||
<li key={file.id} className="flex flex-wrap items-center gap-x-4 gap-y-1 px-4 py-3 text-sm">
|
||||
{file.missing ? (
|
||||
|
|
@ -439,7 +439,7 @@ function RequestFilesTab() {
|
|||
)}
|
||||
<span className="text-xs text-muted">{formatBytes(file.size)}</span>
|
||||
{file.missing && (
|
||||
<span className="rounded-full bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">Missing from Drive</span>
|
||||
<span className=" bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">Missing from Drive</span>
|
||||
)}
|
||||
<Link to="/admin/requests" className="text-xs text-muted hover:text-link hover:underline">
|
||||
Request #{file.feedback_id}
|
||||
|
|
@ -453,7 +453,7 @@ function RequestFilesTab() {
|
|||
type="button"
|
||||
disabled={busy}
|
||||
onClick={() => remove(file)}
|
||||
className="rounded-full bg-danger px-3 py-0.5 text-xs font-semibold text-white disabled:opacity-60"
|
||||
className="btn bg-danger px-3 py-0.5 text-xs text-white disabled:opacity-60"
|
||||
>
|
||||
{busy ? "Removing…" : "Remove it"}
|
||||
</button>{" "}
|
||||
|
|
@ -548,7 +548,7 @@ export default function AdminMedia() {
|
|||
value={query}
|
||||
onChange={(e) => setQuery(e.target.value)}
|
||||
placeholder="Search by file name"
|
||||
className="ml-auto w-64 rounded-lg border border-muted/25 px-3 py-2 text-sm outline-none focus:border-brand"
|
||||
className="ml-auto w-64 border border-muted/25 px-3 py-2 text-sm outline-none focus:border-brand"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue