60 lines
1.6 KiB
SCSS
60 lines
1.6 KiB
SCSS
$unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
|
|
$josefinfonts:
|
|
100 Thin normal,
|
|
100 ThinItalic italic,
|
|
200 ExtraLight normal,
|
|
200 ExtraLight italic,
|
|
300 Light normal,
|
|
300 LightItalic italic,
|
|
400 Regular normal,
|
|
400 RegularItalic italic,
|
|
500 Medium normal,
|
|
500 MediumItalic italic,
|
|
600 SemiBold normal,
|
|
600 SemiBoldItalic italic,
|
|
700 Bold normal,
|
|
700 Bold italic;
|
|
|
|
@each $weight, $filename, $style in $josefinfonts {
|
|
@font-face {
|
|
font-family: 'JosefinSans';
|
|
font-style: $style;
|
|
font-weight: $weight;
|
|
src: url("./fonts/JosefinSans-#{$filename}.woff2") format("woff"),
|
|
url("./fonts/JosefinSans-#{$filename}.ttf") format("truetype");
|
|
unicode-range: $unicode-range;
|
|
}
|
|
}
|
|
|
|
$cardofonts:
|
|
400 Regular normal,
|
|
400 Italic italic,
|
|
700 Bold normal;
|
|
|
|
@each $weight, $filename, $style in $cardofonts {
|
|
@font-face {
|
|
font-family: 'Cardo';
|
|
font-style: $style;
|
|
font-weight: $weight;
|
|
src: url("./fonts/Cardo-#{$filename}.woff2") format("woff"),
|
|
url("./fonts/Cardo-#{$filename}.ttf") format("truetype");
|
|
unicode-range: $unicode-range;
|
|
}
|
|
}
|
|
|
|
$firafonts:
|
|
400 Regular normal,;
|
|
|
|
@each $weight, $filename, $style in $firafonts {
|
|
@font-face {
|
|
font-family: 'FiraCode';
|
|
font-style: $style;
|
|
font-weight: $weight;
|
|
src: url("./fonts/FiraCode-#{$filename}.woff2") format("woff"),
|
|
url("./fonts/Fira-#{$filename}.ttf") format("truetype");
|
|
unicode-range: $unicode-range;
|
|
}
|
|
}
|
|
|