2021-08-25 15:58:19 +00:00
|
|
|
@mixin define-font-family($name, $weight, $style, $filename) {
|
|
|
|
font-family: $name;
|
|
|
|
|
2022-12-22 17:39:51 +00:00
|
|
|
src:
|
2021-08-25 15:58:19 +00:00
|
|
|
url("../font/woff2/#{$filename}") format("woff2"),
|
|
|
|
url("../font/ttf/#{$filename}") format("ttf");
|
|
|
|
font-weight: $weight;
|
|
|
|
@if $style {
|
|
|
|
font-style: $style;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$sans_font: IBMPlexSans;
|
|
|
|
$serif_font: IBMPlexSerif;
|
2022-12-22 17:39:51 +00:00
|
|
|
$mono_font: IBMPlexMono;
|
2021-08-25 15:58:19 +00:00
|
|
|
|
|
|
|
@font-face {
|
2023-01-06 11:58:28 +00:00
|
|
|
@include define-font-family($serif_font, normal, italic, 'IBMPlexSerif-Italic.woff2')
|
2021-08-25 15:58:19 +00:00
|
|
|
}
|
|
|
|
@font-face {
|
|
|
|
@include define-font-family($sans_font, normal, null, 'IBMPlexSans-Regular.woff2')
|
|
|
|
}
|
|
|
|
@font-face {
|
2023-01-06 11:58:28 +00:00
|
|
|
@include define-font-family($mono_font, normal, null, 'IBMPlexMono-Regular.woff2')
|
2021-08-25 15:58:19 +00:00
|
|
|
}
|
|
|
|
@font-face {
|
2023-01-06 11:58:28 +00:00
|
|
|
@include define-font-family($mono_font, 700, null, 'IBMPlexMono-Medium.woff2')
|
2021-08-25 15:58:19 +00:00
|
|
|
}
|
2022-12-22 17:39:51 +00:00
|
|
|
@font-face {
|
2023-01-06 11:58:28 +00:00
|
|
|
@include define-font-family($serif_font, normal, null, 'IBMPlexSerif-Regular.woff2')
|
2022-12-22 17:39:51 +00:00
|
|
|
}
|
|
|
|
@font-face {
|
2023-01-06 11:58:28 +00:00
|
|
|
@include define-font-family($serif_font, normal, bold, 'IBMPlexSerif-Bold.woff2')
|
2022-12-22 17:39:51 +00:00
|
|
|
}
|