Skip to content

Instantly share code, notes, and snippets.

@zastrow
Created January 14, 2021 17:45
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/1fcdc84ed5b7bc4ccf20011b46bdf5e5 to your computer and use it in GitHub Desktop.
Save zastrow/1fcdc84ed5b7bc4ccf20011b46bdf5e5 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$font-stack: sytem-ui, sans-serif;
@function font($override:null) {
@if $override {
@return $font-stack !important;
}
@else {
@return $font-stack;
}
}
.my-class {
font-family: font();
}
.my-override {
font-family: font(override);
}
.my-class {
font-family: sytem-ui, sans-serif;
}
.my-override {
font-family: sytem-ui, sans-serif !important;
}
{
"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