Leveraging a SASS each loop, you can declare an unlimited number of webfonts in just a few lines.
font-2, etc. with your webfonts. Do note that this mixin requires the font file name to be the same as the name you use in your
I’ll then use a mixin to cleanly implement the webfonts.
For more details on the <code>@font-face</code> syntax, check out this old-but-relevant post on the Font Spring blog.