Skip to content

Load the Inter font and use it for body text - #202

Closed
bendichter wants to merge 2 commits into
mainfrom
load-inter-font
Closed

bendichter wants to merge 2 commits into
mainfrom
load-inter-font

Conversation

@bendichter

Copy link
Copy Markdown
Contributor

Every font-family rule in style.css names Inter, but the font never loads. Its @import sits in the middle of the stylesheet, and browsers ignore an @import that comes after other rules. Headings, lists and navigation fall back to Helvetica or Arial. Paragraphs written in Markdown have no inter-* class and use Bootstrap's system font stack, so a single page can show two typefaces.

This requests the font from the page head with a preconnect and sets body to Inter, so all text uses it.

Inter is slightly wider than the fallback fonts. I compared every page before and after at 1440, 1280 and 400 px: pages grow by up to 5% in height and nothing overflows. The one new wrap that mattered was the "Get Started" button in the header, which broke onto two lines between 1200 and 1400 px, so it now has text-nowrap.

Between 992 and 1200 px the header does not fit on main either, and the logo is squeezed to about 40 px wide. Keeping the button on one line squeezes it further. That range needs its own fix, which is to collapse the menu at 1200 px instead of 992 px.

🤖 Generated with Claude Code

Every font-family rule in style.css names Inter, but the font never
loaded. Its `@import` sat in the middle of the stylesheet, and browsers
ignore an `@import` that comes after other rules, so headings, lists and
navigation fell back to Helvetica or Arial. Paragraphs written in
Markdown have no inter-* class and used Bootstrap's system font stack,
so a page could show two typefaces.

The font is now requested from the page head, with a preconnect, and
`body` is set to Inter so that all text uses it.

Inter is slightly wider than the fallback fonts. The header button would
wrap to two lines between 1200 and 1400 px, so it is marked nowrap.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for nwborg ready!

Name Link
🔨 Latest commit 85bb315
🔍 Latest deploy log https://app.netlify.com/projects/nwborg/deploys/6acb99727e3950000850d7d0
😎 Deploy Preview https://deploy-preview-202--nwborg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bendichter

Copy link
Copy Markdown
Contributor Author

Superseded by #209, which combines this with the related PRs. The commits here are included there unchanged.

@bendichter bendichter closed this Oct 11, 2026
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