Created
December 14, 2018 23:39
-
-
Save eukras/e6165fb48447167a0089fc98d26dd1fa to your computer and use it in GitHub Desktop.
Simple SASS/SCSS font scaling.
This file contains 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
$stepUp: 1.20; | |
$stepDown: 0.90; | |
$fontSizePlus3: #{$stepUp * $stepUp * $stepUp}rem; | |
$fontSizePlus2: #{$stepUp * $stepUp}rem; | |
$fontSizePlus1: #{$stepUp}rem; | |
$fontSize: 1rem; | |
$fontSizeMinus1: #{$stepDown}rem; | |
$fontSizeMinus2: #{$stepDown * $stepDown}rem; | |
$fontSizeMinus3: #{$stepDown * $stepDown * $stepDown}rem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment