-
Hi there, I'm trying to use Public Sans but the font loaded is Any suggestions are greatly appreciated 🙏 https://codesandbox.io/p/sandbox/serene-bird-2k1x7n?file=README.md |
Beta Was this translation helpful? Give feedback.
Answered by
ayuhito
Apr 19, 2023
Replies: 1 comment 1 reply
-
You have only imported Reference: https://fontsource.org/docs/getting-started (I agree the documentation doesn't make that obvious. I do have a rewrite in progress though!) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
koji
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have only imported
font-weight: 400
of Public Sans in yourmain.tsx
. Adding additional imports such asimport "@fontsource/open-sans/700.css"
would fix the text as the default weight of theh2
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!)