Design comparison
SolutionDesign
Solution retrospective
Can't set "font-weight" property on font imported from Google fonts
Community feedback
- @rachelktyjohnsonPosted almost 2 years ago
Hey Pranay, The project is looking good! For the
font-weight
problem. Looking at your code, it looks like you've only imported 1 font-weight from Google Fonts, my guess is 400. In order to use other font weights, likefont-weight:700
, you'll need to make sure 700 is selected in Google Fonts. The import link would look something like this:https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap
Marked as helpful2@thepranPosted almost 2 years ago@rachelktyjohnson, I'll look into it. Thanks a lot, Rachel.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord