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
|
|
@ -91,7 +91,7 @@ function LinkCard({ item }: { item: ContentBlockItem }) {
|
|||
return (
|
||||
<Anchor
|
||||
href={url}
|
||||
className="group flex h-full flex-col overflow-hidden rounded-2xl border border-brand/15 bg-surface shadow-sm transition-shadow hover:shadow-lg"
|
||||
className="group flex h-full flex-col overflow-hidden border border-brand/15 bg-surface shadow-sm transition-shadow hover:shadow-lg"
|
||||
>
|
||||
{!img.failed && (
|
||||
<img src={img.src} alt="" loading="lazy" onError={img.onError} className="aspect-video w-full object-cover" />
|
||||
|
|
@ -184,7 +184,7 @@ function Block({ block, accent, anchor }: { block: ContentBlock; accent: string;
|
|||
<Anchor
|
||||
key={index}
|
||||
href={item.url as string}
|
||||
className="rounded-full border px-4 py-1.5 text-sm font-medium transition-colors hover:bg-tint"
|
||||
className="btn border px-4 py-1.5 text-sm transition-colors hover:bg-tint"
|
||||
style={{ borderColor: accent, color: accentText(accent) }}
|
||||
>
|
||||
{item.text}
|
||||
|
|
@ -199,7 +199,7 @@ function Block({ block, accent, anchor }: { block: ContentBlock; accent: string;
|
|||
<div>
|
||||
<Anchor
|
||||
href={block.href}
|
||||
className="inline-block rounded-full px-6 py-2.5 font-semibold text-white transition-transform hover:scale-105"
|
||||
className="inline-block btn px-6 py-2.5 text-white transition-transform hover:scale-105"
|
||||
style={{ background: accent }}
|
||||
>
|
||||
{text}
|
||||
|
|
@ -245,7 +245,7 @@ function Block({ block, accent, anchor }: { block: ContentBlock; accent: string;
|
|||
return (
|
||||
// Wide tables scroll sideways inside their box on a phone
|
||||
// rather than squeezing every column to a word.
|
||||
<div className="overflow-x-auto rounded-2xl border border-brand/15">
|
||||
<div className="overflow-x-auto border border-brand/15">
|
||||
<table className="min-w-full text-left text-sm leading-snug">
|
||||
<thead className="bg-tint">
|
||||
<tr>
|
||||
|
|
@ -282,7 +282,7 @@ function Block({ block, accent, anchor }: { block: ContentBlock; accent: string;
|
|||
if (!text) return null
|
||||
return (
|
||||
<aside
|
||||
className="space-y-3 rounded-2xl border-l-4 px-6 py-5 leading-relaxed"
|
||||
className="space-y-3 border-l-4 px-6 py-5 leading-relaxed"
|
||||
style={{ borderColor: accent, background: `color-mix(in srgb, ${accent} 8%, var(--color-surface))`, color: 'var(--color-body)' }}
|
||||
>
|
||||
<Paragraphs text={text} accent={accent} />
|
||||
|
|
@ -300,7 +300,7 @@ function Block({ block, accent, anchor }: { block: ContentBlock; accent: string;
|
|||
alt={block.alt ?? ''}
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
className="w-full rounded-lg"
|
||||
className="w-full"
|
||||
/>
|
||||
)
|
||||
return (
|
||||
|
|
@ -315,7 +315,7 @@ function Block({ block, accent, anchor }: { block: ContentBlock; accent: string;
|
|||
if (!block.href) return null
|
||||
return (
|
||||
<figure>
|
||||
<div className="overflow-hidden rounded-lg">
|
||||
<div className="overflow-hidden">
|
||||
<VideoPlayer url={block.href} still={mediaUrl(block.media)} title={text || null} />
|
||||
</div>
|
||||
<Caption text={text} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue