Skip to content

Instantly share code, notes, and snippets.

@danrouse
Created January 28, 2015 02:11
Show Gist options
  • Save danrouse/f593f0af71a75179ab97 to your computer and use it in GitHub Desktop.
Save danrouse/f593f0af71a75179ab97 to your computer and use it in GitHub Desktop.
Sass Type Scale
$font-scale: 1.333;
$font-base-size: 1em;
$font-size: $font-base-size;
@for $i from 6 through 1 {
h#{$i} {
font-size: $font-size;
}
$font-size: $font-size * $font-scale;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment