templates: Update to new font mixins

This commit is contained in:
Tristan Daniël Maat 2023-06-13 21:34:01 +01:00
parent aba022379d
commit c573a6f818
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -1,29 +1,27 @@
@use "~/node_modules/@fontsource/nunito/scss/mixins" as Nunito; @use "~/node_modules/@fontsource/nunito/scss/mixins" as Nunito;
@use "~/node_modules/@fontsource/arimo/scss/mixins" as Arimo; @use "~/node_modules/@fontsource/arimo/scss/mixins" as Arimo;
$weights: 300, 400, 500, 600, 700; @include Nunito.faces(
$weights: (
@each $weight in $weights { 300,
@include Nunito.fontFace( 400,
$weight: $weight, 500,
600,
700,
),
$display: auto, $display: auto,
$style: normal, $styles: (
$fontDir: "npm:@fontsource/nunito/files" normal,
); italic,
),
$directory: "npm:@fontsource/nunito/files"
);
@include Nunito.fontFace( @include Arimo.faces(
$weight: $weight, $weights: 400,
$display: auto, $display: auto,
$style: italic, $styles: normal,
$fontDir: "npm:@fontsource/nunito/files" $directory: "npm:@fontsource/arimo/files"
);
}
@include Arimo.fontFace(
$weight: 400,
$display: auto,
$style: normal,
$fontDir: "npm:@fontsource/arimo/files"
); );
// Hack *does* come with its own CSS, but it's broken and hasn't seen // Hack *does* come with its own CSS, but it's broken and hasn't seen