Created
April 27, 2016 06:46
-
-
Save 3den/bc29de4c4a623fd8f0dcfdcb490dc97a to your computer and use it in GitHub Desktop.
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
$static-font-path: "salesforce-lightning-design-system/assets/fonts/webfonts/"; | |
// This is needed to fix loadind fonts | |
// https://github.com/salesforce-ux/design-system/issues/71 | |
@mixin set-slds-font($name, $file, $weight: 400, $style: normal) { | |
@font-face { | |
font-family: $name; | |
font-weight: $weight; | |
font-style: $style; | |
src: font-files( | |
$static-font-path + $file + ".woff", | |
$static-font-path + $file + ".woff2", | |
$static-font-path + $file + ".eot", | |
$static-font-path + $file + ".svg" | |
); | |
} | |
} | |
@include set-slds-font("Salesforce Sans", "SalesforceSans-Light", 300); | |
@include set-slds-font("Salesforce Sans", "SalesforceSans-LightItalic", 300, italic); | |
@include set-slds-font("Salesforce Sans", "SalesforceSans-Regular", 400); | |
@include set-slds-font("Salesforce Sans", "SalesforceSans-Italic", 400, italic); | |
@include set-slds-font("Salesforce Sans", "SalesforceSans-Bold", 700); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment