Last active
December 16, 2015 04:08
-
-
Save aebsr/5375021 to your computer and use it in GitHub Desktop.
Typekit Less Mixin
This file contains hidden or 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
.your-font-name(@weight: 3, @style: 'n') { | |
// Value combinations - i is for italic | |
// light: 3, n | |
// regular: 4, n/i | |
// medium: 5, n | |
// bold: 7, n/i | |
// Valid Syntax | |
// .your-font-name(3, n) | |
// .your-font-name(3, 'n') | |
font-weight: ~"@{weight}00"; | |
font-family: ~"typeki-font-name-@{style}@{weight}", "typeki-font-name", arial, helvetica, sans-serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IE friendly, flexible and Less 1.4 compatible mixin