Skip to content

Instantly share code, notes, and snippets.

@cristian-frumusanu
Last active April 24, 2020 10:04
Show Gist options
  • Save cristian-frumusanu/8f9e41d7ce34aa5b9ef1e2b860681423 to your computer and use it in GitHub Desktop.
Save cristian-frumusanu/8f9e41d7ce34aa5b9ef1e2b860681423 to your computer and use it in GitHub Desktop.
SCSS - generate font size helper classes
// REM
@for $i from 10 through 25 {
.fs-#{$i} {
font-size: #{$i/16}rem !important;
}
}
// PX
@for $i from 10 through 25 {
.fs-#{$i} {
font-size: #{$i}px !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment