Can't figure out how to switch font-weight
#607
-
I am using this package on Gatsby and I am sure it has font weight from 300 - 900 (link) and when I import font-weight specific file like import '@fontsource/figtree/700.css'; it changes all text to If I import just So I was wondering how to apply different font-weight to different text? Thank you for your help in advance! Implementation on Gatsby is written here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well... I kind of figured it out. Once I set I imported like below in import '@fontsource/figtree/400.css';
import '@fontsource/figtree/600.css'; |
Beta Was this translation helpful? Give feedback.
Well... I kind of figured it out.
Once I set
font-weight
to body tag and where it should be specified (like 600 or 700), importing multiple font weight works as expected.I imported like below in
gatsby-browser.ts
.