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
|
|
@ -58,7 +58,7 @@ function PathIcon({ value }: { value?: string | null }) {
|
|||
}
|
||||
|
||||
// The site's accent family, in turn (color.ts).
|
||||
const PATH_ACCENTS = [ACCENTS.teal, ACCENTS.green, ACCENTS.mint, ACCENTS.deep]
|
||||
const PATH_ACCENTS = [ACCENTS.teal, ACCENTS.green, ACCENTS.olive, ACCENTS.deep]
|
||||
|
||||
export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) {
|
||||
const [selected, setSelected] = useState(0)
|
||||
|
|
@ -123,7 +123,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
|||
aria-controls={`${base}-panel`}
|
||||
tabIndex={on ? 0 : -1}
|
||||
onClick={() => setSelected(index)}
|
||||
className="group flex items-center gap-4 rounded-2xl border-2 px-5 py-4 text-left transition-all duration-300"
|
||||
className="group flex items-center gap-4 border-2 px-5 py-4 text-left transition-all duration-300"
|
||||
style={{
|
||||
borderColor: on ? color : 'rgba(19,139,160,0.12)',
|
||||
background: on ? `${withAlpha(color, 7)}` : 'var(--color-surface)',
|
||||
|
|
@ -131,7 +131,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
|||
}}
|
||||
>
|
||||
<span
|
||||
className="flex h-12 w-12 shrink-0 items-center justify-center rounded-xl text-2xl transition-transform duration-300 group-hover:scale-110"
|
||||
className="flex h-12 w-12 shrink-0 items-center justify-center text-2xl transition-transform duration-300 group-hover:scale-110"
|
||||
style={{
|
||||
background: on ? color : `${withAlpha(color, 12)}`,
|
||||
color: on ? readableOn(color) : accentText(color),
|
||||
|
|
@ -161,7 +161,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
|||
id={`${base}-panel`}
|
||||
role="tabpanel"
|
||||
aria-labelledby={`${base}-tab-${selected}`}
|
||||
className="relative overflow-hidden rounded-3xl p-8 md:p-10 lg:col-span-7"
|
||||
className="relative overflow-hidden p-8 md:p-10 lg:col-span-7"
|
||||
style={{ background: withAlpha(accent, 5) }}
|
||||
>
|
||||
|
||||
|
|
@ -180,7 +180,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
|||
>
|
||||
<HomeLink
|
||||
url={action.url}
|
||||
className="group flex h-full flex-col rounded-2xl bg-surface p-6 shadow-sm ring-1 ring-black/5 transition-all duration-300 hover:-translate-y-1 hover:shadow-xl"
|
||||
className="group flex h-full flex-col bg-surface p-6 shadow-sm ring-1 ring-black/5 transition-all duration-300 hover:-translate-y-1 hover:shadow-xl"
|
||||
>
|
||||
<span className="flex items-start gap-2 font-display text-lg font-bold text-ink">
|
||||
{action.label}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue