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
|
|
@ -56,7 +56,7 @@ function List({ entries, lit }: { entries: ContentsEntry[]; lit: string | null }
|
|||
onClick={(event) => jump(event, entry.id)}
|
||||
aria-current={entry.id === lit ? 'location' : undefined}
|
||||
className={
|
||||
'block rounded-lg border-l-2 px-3 py-1.5 transition-colors ' +
|
||||
'block border-l-2 px-3 py-1.5 transition-colors ' +
|
||||
(entry.id === lit
|
||||
? 'border-link bg-tint font-semibold text-link'
|
||||
: 'border-transparent text-muted hover:text-link')
|
||||
|
|
@ -74,7 +74,7 @@ export default function PostContents({ entries }: { entries: ContentsEntry[] })
|
|||
const lit = useLit(entries)
|
||||
return (
|
||||
<>
|
||||
<details className="rounded-2xl border border-brand/20 bg-tint-soft p-4 lg:hidden print:hidden">
|
||||
<details className="border border-brand/20 bg-tint-soft p-4 lg:hidden print:hidden">
|
||||
<summary className="cursor-pointer font-semibold text-ink">On this page</summary>
|
||||
<div className="mt-3">
|
||||
<List entries={entries} lit={lit} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue