Skip to content

Instantly share code, notes, and snippets.

@jeremycaldwell
Last active June 29, 2021 22:02
Show Gist options
  • Save jeremycaldwell/60a0445687122ad78dbb8efcdbd5ca87 to your computer and use it in GitHub Desktop.
Save jeremycaldwell/60a0445687122ad78dbb8efcdbd5ca87 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$base-font-size: 16px; // The font size set on the root html element.
@function rem($size) {
$remSize: $size / $base-font-size;
@return #{$remSize}rem;
}
//////// CODE STARTS BELOW ////////
p {
font-size: rem(18px);
line-height: (24/18);
}
// Line-height = 24px
// Font-size = 18px
p {
font-size: 1.125rem;
line-height: 1.3333333333;
}
{
"sass": {
"compiler": "dart-sass/1.26.11",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment