Skip to content

Can't figure out how to switch font-weight #607

Answered by masafumimori
masafumimori asked this question in Q&A
Discussion options

You must be logged in to vote

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.

import '@fontsource/figtree/400.css';
import '@fontsource/figtree/600.css'; 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by masafumimori
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant