Skip to content

Instantly share code, notes, and snippets.

@jensgro
Created December 16, 2022 17:57
Show Gist options
  • Save jensgro/3f7bae63472ebfcf302fdf5f722bc665 to your computer and use it in GitHub Desktop.
Save jensgro/3f7bae63472ebfcf302fdf5f722bc665 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@mixin ff($name, $weight, $path){
@font-face {
font-family: '#{$name}';
font-style: normal;
font-weight: $weight;
src: local(''),
url('../fonts/'+$path+'.woff2') format('woff2'),
url('../fonts/'+$path+'.woff') format('woff');
}
}
@include ff("Assistant", 400, "assistant-v18-latin-regular" )
@font-face {
font-family: "Assistant";
font-style: normal;
font-weight: 400;
src: local(""), url("../fonts/assistant-v18-latin-regular.woff2") format("woff2"), url("../fonts/assistant-v18-latin-regular.woff") format("woff");
}
{
"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