Created
April 3, 2023 15:27
-
-
Save zastrow/ebf0c714f5831da9c4c6f548a324f434 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
@use "sass:map"; | |
$sizes: ( | |
'regular': 1rem, | |
'small': 0.875rem, | |
'large': 2rem | |
); | |
@function size($size) { | |
@return map.get($sizes, $size); | |
} | |
@each $name, $value in $sizes { | |
.font-#{$name} { | |
font-size: $value; | |
@if $name == "large" { | |
text-transform: uppercase; | |
letter-spacing: 0.125em; | |
} | |
} | |
} |
This file contains hidden or 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
.font-regular { | |
font-size: 1rem; | |
} | |
.font-small { | |
font-size: 0.875rem; | |
} | |
.font-large { | |
font-size: 2rem; | |
text-transform: uppercase; | |
letter-spacing: 0.125em; | |
} |
This file contains hidden or 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
{ | |
"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