Use Lexend 300 as 400

This commit is contained in:
Karina Kwiatek 2022-10-26 10:57:55 +02:00
parent 16ac195ab9
commit 9e52d5b623
2 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,6 @@
// Font settings
$lexend-font-path: "~@fontsource/lexend/files";
$lexend-weights: 400, 500, 600;
$lexend-weights: 500, 600;
$fa-font-path: "~font-awesome/fonts";
$font-family-sans-serif: "Lexend", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

View File

@ -32,6 +32,19 @@
);
}
// Using Lexend Light (300) as Regular (400) as Regular is quite thick.
@each $subset, $unicodeRangeValues in Lexend.$unicodeMap {
@font-face {
font-family: Lexend;
font-style: normal;
font-display: swap;
font-weight: 400;
src: url("#{Lexend.$fontDir}/lexend-#{$subset}-300-normal.woff2") format("woff2"),
url("#{Lexend.$fontDir}/lexend-all-300-normal.woff") format("woff");
unicode-range: $unicodeRangeValues;
}
}
/**
OVERRIDES
----------------------------------------------