Skip to content

Instantly share code, notes, and snippets.

@aebsr
Last active December 16, 2015 04:08
Show Gist options
  • Save aebsr/5375021 to your computer and use it in GitHub Desktop.
Save aebsr/5375021 to your computer and use it in GitHub Desktop.
Typekit Less Mixin
.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;
}
@aebsr
Copy link
Author

aebsr commented Apr 12, 2013

IE friendly, flexible and Less 1.4 compatible mixin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment