Repository navigation
Load the Inter font and use it for body text - #202
Closed
bendichter wants to merge 2 commits into
Closed
bendichter wants to merge 2 commits into
bendichter wants to merge 2 commits into
Conversation
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>
✅ Deploy Preview for nwborg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
|
Superseded by #209, which combines this with the related PRs. The commits here are included there unchanged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every
font-familyrule instyle.cssnames Inter, but the font never loads. Its@importsits in the middle of the stylesheet, and browsers ignore an@importthat comes after other rules. Headings, lists and navigation fall back to Helvetica or Arial. Paragraphs written in Markdown have nointer-*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
bodyto 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
maineither, 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