Merge pull request #765 from Retrospring/thinner-lexend

Use Lexend 300 as 400
This commit is contained in:
Karina Kwiatek 2022-10-26 11:34:35 +02:00 committed by GitHub
commit 13c6526846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View File

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