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
|
|
@ -83,11 +83,11 @@ function sizeOf(bytes: number | null): string {
|
|||
}
|
||||
|
||||
const button =
|
||||
"rounded-full border border-brand px-4 py-2 text-sm font-semibold text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50";
|
||||
"btn border border-brand px-4 py-2 text-sm text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50";
|
||||
const primary =
|
||||
"rounded-full bg-action px-5 py-2.5 font-semibold text-white transition-colors hover:bg-action-hover disabled:bg-muted/25";
|
||||
"btn bg-action px-5 py-2.5 text-white transition-colors hover:bg-action-hover disabled:bg-muted/25";
|
||||
const input =
|
||||
"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";
|
||||
"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";
|
||||
|
||||
/* Save to Drive: a folder under Media (Tools → Media → Files), then
|
||||
the clip goes there as a Files entry. Opens on a folder named for
|
||||
|
|
@ -141,7 +141,7 @@ function SaveToDrive({ clip, onSaved }: { clip: Job; onSaved: () => void }) {
|
|||
value={folder}
|
||||
disabled={busy}
|
||||
onChange={(e) => setFolder(e.target.value)}
|
||||
className="rounded-lg border border-muted/25 bg-surface px-2 py-1 text-sm text-body"
|
||||
className="border border-muted/25 bg-surface px-2 py-1 text-sm text-body"
|
||||
>
|
||||
<option value="">Media (not in a folder)</option>
|
||||
{folders.map((f) => (
|
||||
|
|
@ -165,7 +165,7 @@ function SaveToDrive({ clip, onSaved }: { clip: Job; onSaved: () => void }) {
|
|||
|
||||
function Card({ title, children }: { title: string; children: ReactNode }) {
|
||||
return (
|
||||
<section className="mt-6 rounded-2xl border border-brand/20 bg-surface p-5">
|
||||
<section className="mt-6 border border-brand/20 bg-surface p-5">
|
||||
<h2 className="text-lg font-semibold text-body">{title}</h2>
|
||||
<div className="mt-4">{children}</div>
|
||||
</section>
|
||||
|
|
@ -178,7 +178,7 @@ function Status({ job }: { job: Job }) {
|
|||
const percent = Math.round(job.progress * 100);
|
||||
return (
|
||||
<div className="mt-2">
|
||||
<div className="h-2 overflow-hidden rounded-full bg-tint">
|
||||
<div className="h-2 overflow-hidden bg-tint">
|
||||
<div className="h-full bg-action transition-all" style={{ width: `${job.status === "queued" ? 0 : percent}%` }} />
|
||||
</div>
|
||||
<p className="mt-1 text-xs" style={{ color: MUTED }}>
|
||||
|
|
@ -244,7 +244,7 @@ function Editor({ source, onMade }: { source: Job; onMade: () => void }) {
|
|||
<div className="grid gap-6 lg:grid-cols-[minmax(0,3fr)_minmax(0,2fr)]">
|
||||
<div>
|
||||
<div
|
||||
className="relative overflow-hidden rounded-xl bg-black"
|
||||
className="relative overflow-hidden bg-black"
|
||||
style={{ aspectRatio: aspect ? String(aspect) : "16 / 9" }}
|
||||
>
|
||||
<video
|
||||
|
|
@ -451,7 +451,7 @@ export default function AdminClips() {
|
|||
</div>
|
||||
|
||||
{missing.length > 0 && (
|
||||
<p className="mt-4 rounded-xl bg-danger-tint px-4 py-3 text-sm text-danger">
|
||||
<p className="mt-4 bg-danger-tint px-4 py-3 text-sm text-danger">
|
||||
{missing.join(" and ")} {missing.length > 1 ? "aren't" : "isn't"} installed on the server, so this
|
||||
won't work until {missing.length > 1 ? "they are" : "it is"}. See docs/video-clips.md.
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue