If you are using Google Fonts or a custom web font, you probably are writing different font weights and styles. These mixins combine the two to make it really easy to update a global font style in your stylesheet.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | @mixin font-xlight { font-weight: 200; font-style: normal; } @mixin font-xlight-italic { font-weight: 200; font-style: italic; } @mixin font-light { font-weight: 300; font-style: normal; } @mixin font-light-italic { font-weight: 300; font-style: italic; } @mixin font-book { font-weight: 400; font-style: normal; } @mixin font-book-italic { font-weight: 400; font-style: italic; } @mixin font-medium { font-weight: 500; font-style: normal; } @mixin font-medium-italic { font-weight: 500; font-style: italic; } @mixin font-bold { font-weight: 700; font-style: normal; } @mixin font-bold-italic { font-weight: 700; font-style: italic; } @mixin font-black { font-weight: 800; font-style: normal; } @mixin font-black-italic { font-weight: 800; font-style: italic; } |