Skip to content

Instantly share code, notes, and snippets.

@norin89
Created August 3, 2023 08:37
Show Gist options
  • Save norin89/951115fbb818e938722a25d9148cb5ee to your computer and use it in GitHub Desktop.
Save norin89/951115fbb818e938722a25d9148cb5ee to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// @use "sass:math";
@mixin font-size($size: 16, $line: 1.5) {
font-size: $size * 1px;
font-size: ($size / 16) + rem;
@if $line < 4 {
line-height: $line;
} @else {
line-height: $line / $size;
}
}
body {
@include font-size(10, 16px);
}
body {
font-size: 10px;
font-size: 0.625rem;
line-height: 1.6px;
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"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