1// Typography mixins
2
3// Fonts in rems with px fallback
4
5@mixin font-size($size, $is-important: false) {
6  $size: if(unitless($size), $size, $size / 1px);
7
8  @if $is-important {
9    font-size: $size + px !important;
10    font-size: ($size / strip-units($base-font-size)) + rem !important;
11  } @else {
12    font-size: $size + px;
13    font-size: ($size / strip-units($base-font-size)) + rem;
14  }
15}