-
|
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.
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.

You have only imported
font-weight: 400of Public Sans in yourmain.tsx. Adding additional imports such asimport "@fontsource/open-sans/700.css"would fix the text as the default weight of theh2element 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!)