Created
June 30, 2021 08:35
-
-
Save mvsde/3e25c4fc57b497e7b1ace27c738e23f3 to your computer and use it in GitHub Desktop.
Self-hosted fonts with Fontsource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Fontsource makes open source fonts available on npm. | |
* https://github.com/fontsource/fontsource | |
*/ | |
@use "@fontsource/font-name/scss/mixins" as font-name; | |
@include font-name.fontFace( | |
$weight: 400, | |
$style: normal, | |
$display: fallback | |
); | |
// Add additional weights if necessary. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment