Last active
October 11, 2019 11:15
-
-
Save vadimbogomazov/56d1bcc13c5d1cacbf1dfd88d8bf2a4b to your computer and use it in GitHub Desktop.
Font face SCSS mixin
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
@mixin font-face($family, $src, $style: normal, $weight: 400, $display: swap) { | |
@font-face { | |
font-family: $family; | |
src: url('#{$src}.woff2') format('woff2'), | |
url('#{$src}.woff') format('woff'); | |
font-style: $style; | |
font-weight: $weight; | |
font-display: $display; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment