fix: storybook font rendering and shared fonts module #1

Merged
ilia merged 74 commits from feat/portfolio-setup into main 2026-05-18 18:45:22 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit b40ff4f588 - Show all commits
@@ -42,8 +42,8 @@ export function SectionAccordion({ number, title, id, isActive, href, children }
<ViewTransitionWrapper name="section-content"> <ViewTransitionWrapper name="section-content">
<div className="mb-16"> <div className="mb-16">
<h1 <h1
className="font-heading font-black text-5xl leading-[1.2] mb-0" className="font-heading font-black leading-[1.2] mb-0"
style={{ fontVariationSettings: "'WONK' 1, 'SOFT' 0" }} style={{ fontSize: 'var(--text-section-title)', fontVariationSettings: "'WONK' 1, 'SOFT' 0" }}
> >
{heading} {heading}
</h1> </h1>
+3
View File
@@ -20,6 +20,9 @@
--font-weight-body: 600; --font-weight-body: 600;
--font-weight-normal: 400; --font-weight-normal: 400;
/* Fluid section title: scales from 2rem at ~267px to 8rem at ~1707px */
--text-section-title: clamp(2rem, 7.5vw, 8rem);
/* === LINE HEIGHT === */ /* === LINE HEIGHT === */
--line-height-tight: 1.2; --line-height-tight: 1.2;
--line-height-normal: 1.5; --line-height-normal: 1.5;