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
|
|
@ -413,7 +413,7 @@ export default function QrCodeMaker() {
|
|||
)}
|
||||
</div>
|
||||
{warning && (
|
||||
<p role="status" className="mt-2 rounded-lg bg-danger-tint px-3 py-2 text-sm text-danger">
|
||||
<p role="status" className="mt-2 bg-danger-tint px-3 py-2 text-sm text-danger">
|
||||
{warning}
|
||||
</p>
|
||||
)}
|
||||
|
|
@ -423,13 +423,13 @@ export default function QrCodeMaker() {
|
|||
<div>
|
||||
<p className="text-sm font-medium text-body">Links to</p>
|
||||
<div className="mt-2 flex flex-wrap items-center gap-3">
|
||||
<code className="break-all rounded-lg bg-surface px-3 py-2 text-sm text-body ring-1 ring-muted/20">
|
||||
<code className="break-all bg-surface px-3 py-2 text-sm text-body ring-1 ring-muted/20">
|
||||
{url}
|
||||
</code>
|
||||
<button
|
||||
type="button"
|
||||
onClick={copy}
|
||||
className="rounded-full border px-4 py-2 text-sm font-semibold transition-colors hover:bg-brand/10"
|
||||
className="btn border px-4 py-2 text-sm transition-colors hover:bg-brand/10"
|
||||
style={{ borderColor: BRAND, color: accentText(BRAND) }}
|
||||
>
|
||||
{copied ? 'Copied' : 'Copy link'}
|
||||
|
|
@ -442,7 +442,7 @@ export default function QrCodeMaker() {
|
|||
<div className="flex flex-col items-center gap-5">
|
||||
{url ? (
|
||||
<>
|
||||
<div className="w-full max-w-sm rounded-3xl bg-white p-6 shadow-lg ring-1 ring-muted/10">
|
||||
<div className="w-full max-w-sm bg-white p-6 shadow-lg ring-1 ring-muted/10">
|
||||
<QrCode
|
||||
ref={svgRef}
|
||||
value={url}
|
||||
|
|
@ -467,7 +467,7 @@ export default function QrCodeMaker() {
|
|||
</p>
|
||||
</>
|
||||
) : (
|
||||
<div className="aspect-square w-full max-w-sm rounded-3xl bg-surface/60 ring-1 ring-muted/10" />
|
||||
<div className="aspect-square w-full max-w-sm bg-surface/60 ring-1 ring-muted/10" />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -479,7 +479,7 @@ function DownloadButton({ onClick, children }: { onClick: () => void; children:
|
|||
<button
|
||||
type="button"
|
||||
onClick={onClick}
|
||||
className="rounded-full bg-action px-6 py-3 font-semibold text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
|
||||
className="btn bg-action px-6 py-3 text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
|
|
@ -487,7 +487,7 @@ function DownloadButton({ onClick, children }: { onClick: () => void; children:
|
|||
}
|
||||
|
||||
const inputClass =
|
||||
'w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body ' +
|
||||
'w-full border border-muted/50 bg-surface px-4 py-3 text-body ' +
|
||||
'outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25'
|
||||
|
||||
/* A color well with its hex beside it, both editable. */
|
||||
|
|
@ -515,7 +515,7 @@ function ColorInput({
|
|||
type="color"
|
||||
value={value}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
className="h-9 w-11 cursor-pointer rounded border border-muted/25 bg-white"
|
||||
className="h-9 w-11 cursor-pointer border border-muted/25 bg-white"
|
||||
/>
|
||||
<input
|
||||
type="text"
|
||||
|
|
@ -525,7 +525,7 @@ function ColorInput({
|
|||
setText(e.target.value)
|
||||
if (/^#[0-9a-f]{6}$/i.test(e.target.value)) onChange(e.target.value.toLowerCase())
|
||||
}}
|
||||
className="w-24 rounded-lg border border-muted/50 bg-surface px-2 py-1.5 font-mono text-sm text-body outline-none focus:border-brand"
|
||||
className="w-24 border border-muted/50 bg-surface px-2 py-1.5 font-mono text-sm text-body outline-none focus:border-brand"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -533,7 +533,7 @@ function ColorInput({
|
|||
}
|
||||
|
||||
const selectClass =
|
||||
'w-full appearance-none rounded-xl border border-muted/50 bg-surface px-4 py-3 pr-10 text-body ' +
|
||||
'w-full appearance-none border border-muted/50 bg-surface px-4 py-3 pr-10 text-body ' +
|
||||
'outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25'
|
||||
|
||||
function Select({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue