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:
Zaldimmar 2026-09-30 14:40:39 -05:00
parent ecdcd4ec37
commit d81f7bd856
62 changed files with 416 additions and 384 deletions

View file

@ -43,7 +43,7 @@ export function PostCard({ post, accent }: { post: BlogPostSummary; accent: stri
const authors = post.authors.map((author) => author.name).join(', ')
return (
<li className="relative flex flex-col overflow-hidden rounded-2xl border border-brand/15 bg-surface shadow-sm transition-shadow hover:shadow-lg">
<li className="relative flex flex-col overflow-hidden border border-brand/15 bg-surface shadow-sm transition-shadow hover:shadow-lg">
{!cover.failed ? (
<img src={cover.src} alt="" loading="lazy" onError={cover.onError} className="aspect-video w-full object-cover" />
) : (
@ -58,7 +58,7 @@ export function PostCard({ post, accent }: { post: BlogPostSummary; accent: stri
<h4 className="mt-2 font-display text-xl font-extrabold leading-snug text-ink">
<Link
to={blogHref(post.id)}
className="after:absolute after:inset-0 after:rounded-2xl after:content-[''] hover:underline"
className="after:absolute after:inset-0 after:content-[''] hover:underline"
>
{post.title}
</Link>
@ -128,7 +128,7 @@ export default function CommunityBlog({ accent = BRAND }: { accent?: string }) {
{external.url && (
<HomeLink
url={external.url}
className="ml-auto inline-flex items-center gap-2 rounded-full px-5 py-2 text-sm font-semibold text-white transition-transform hover:scale-105"
className="ml-auto inline-flex items-center gap-2 btn px-5 py-2 text-sm text-white transition-transform hover:scale-105"
style={{ background: accent }}
>
<PlatformIcon platform={/substack\.com/i.test(external.url) ? 'substack' : null} />