Skip to content

Add Figtree and Inter web fonts#12

Merged
danielnaab merged 2 commits intomainfrom
hero-monospace-intro
Apr 29, 2026
Merged

Add Figtree and Inter web fonts#12
danielnaab merged 2 commits intomainfrom
hero-monospace-intro

Conversation

@danielnaab
Copy link
Copy Markdown
Member

@danielnaab danielnaab commented Apr 29, 2026

Summary

  • Self-host Figtree (headings) and Inter (body) as variable-weight woff2 fonts, matching the flexion.us brand typography
  • Add --font-display token for Figtree, update --font-sans to lead with Inter
  • @font-face declarations in a new fonts.css, imported before CSS layers
  • Remove the monospace homepage heading and the redundant "By the numbers" / "Where to next" sections
  • Update design-system page to reflect the new font pairing

Test plan

  • Headings render in Figtree across all pages
  • Body text renders in Inter
  • Font files load (check Network tab — two woff2 requests)
  • Fallback to system fonts works if woff2 fails to load
  • Design-system page typography section shows correct fonts and description
  • Homepage renders without the removed sections

Align Labs typography with flexion.us brand:
- Figtree (variable, 300–900) for headings via --font-display
- Inter (variable, 100–900) for body text via --font-sans
- Self-hosted woff2 with font-display: swap
- @font-face declarations in fonts.css, imported before layers
- Updated design-system page to reflect the new font pairing

Removes the monospace homepage heading experiment.
A bare @import before the layer order declaration broke cascade
resolution in browsers, disabling all layered styles.
@danielnaab danielnaab temporarily deployed to preview/hero-monospace-intro April 29, 2026 15:36 — with GitHub Actions Inactive
@danielnaab danielnaab merged commit 478e711 into main Apr 29, 2026
3 checks passed
@danielnaab danielnaab deleted the hero-monospace-intro branch April 29, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant