Windicss added google fontFamily - add all weights (100...900) #661
Unanswered
hartmut-co-uk
asked this question in
Q&A
Replies: 1 comment
-
hmm I think manually adding the following, in addition to extending the theme via <style>
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
</style> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, in my slidev project I have extended
./setup/windicss.ts
with following fontFamily which is auto-pulled from google fonts as expected.But as far as I can tell I think it's missing certain font weights.
The documentation mentions
But only a way to configure this via frontmatter, and as far as I understand only for
[sans, serif, mono]
- but I wasn't able to add any custom fonts to use on-demand (scp: 'Source Code Pro'
) via frontmatter, that's why I tried via windicss.ts...Is there any clean / recommended way to do this?
Beta Was this translation helpful? Give feedback.
All reactions