Created
February 22, 2019 07:56
-
-
Save iwonz/ee4caf4a50ddf1d7cd469cf3cd2ea605 to your computer and use it in GitHub Desktop.
SASS font 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($size: 16px, $weight: regular, $family: 'Fira Sans') { | |
font-family: $family; | |
font-size: $size; | |
font-weight: map-get(( | |
thin: 100, | |
light: 300, | |
regular: 400, | |
bold: 700 | |
), $weight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment