Skip to content

Public Sans loads Public Sans Thin #661

Closed Answered by ayuhito
koji asked this question in Q&A
Discussion options

You must be logged in to vote

You have only imported font-weight: 400 of Public Sans in your main.tsx. Adding additional imports such as import "@fontsource/open-sans/700.css" would fix the text as the default weight of the h2 element is 700.

Reference: https://fontsource.org/docs/getting-started (I agree the documentation doesn't make that obvious. I do have a rewrite in progress though!)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@koji
Comment options

Answer selected by koji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants