Skip to content

Instantly share code, notes, and snippets.

@zastrow
Created April 3, 2023 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zastrow/ebf0c714f5831da9c4c6f548a324f434 to your computer and use it in GitHub Desktop.
Save zastrow/ebf0c714f5831da9c4c6f548a324f434 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@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;
}
}
}
.font-regular {
font-size: 1rem;
}
.font-small {
font-size: 0.875rem;
}
.font-large {
font-size: 2rem;
text-transform: uppercase;
letter-spacing: 0.125em;
}
{
"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