Skip to content

Instantly share code, notes, and snippets.

@mattpilott
Created September 15, 2021 21:49
Show Gist options
  • Save mattpilott/5170d564118102d014f16c9f8efdb908 to your computer and use it in GitHub Desktop.
Save mattpilott/5170d564118102d014f16c9f8efdb908 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@mixin clamp($prop, $min, $max, $multi: 100vw) {
@supports ($prop: clamp(0, 0, 0)) {
#{$prop}: clamp(#{$min}, #{$multi}, #{$max});
}
@supports not ($prop: clamp(0, 0, 0)) {
#{$prop}: $min;
@media (min-width: 48em) {
#{$prop}: $multi;
}
@media (min-width: 72em) {
#{$prop}: $max;
}
}
}
html {
--family: -apple-system, Roboto, sans-serif;
--h1: 3rem / 1.3 var(--family);
--h2: 2.5rem / 1.3 var(--family);
--h3: 2.25rem / 1.3 var(--family);
}
html {
--family: -apple-system, Roboto, sans-serif;
--h1: 3rem / 1.3 var(--family);
--h2: 2.5rem / 1.3 var(--family);
--h3: 2.25rem / 1.3 var(--family);
}
{
"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