From 79e8c06aed8d223762b2e4a8524b4a773bca8490 Mon Sep 17 00:00:00 2001 From: julioest Date: Mon, 23 Feb 2026 22:55:18 -0500 Subject: [PATCH] fix: use font-variation-settings for weight demos in style guide Restore font-variation-settings in @font-face and use explicit wght axis values on style guide elements instead of font-weight. --- boostlook-v3.css | 2 ++ preview/style-guide/index.html | 10 +++++----- src/css/03-fonts.css | 2 ++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/boostlook-v3.css b/boostlook-v3.css index f1b2dca..5dce405 100644 --- a/boostlook-v3.css +++ b/boostlook-v3.css @@ -837,6 +837,7 @@ html:has(.boostlook) { font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; + font-variation-settings: "wght" 400, "wdth" 62.5; font-display: block; src: url("../font/NotoSansDisplay.ttf") format("truetype"), url("/static/font/notosans.woff2") format("woff2"), @@ -854,6 +855,7 @@ html:has(.boostlook) { font-style: italic; font-weight: 100 900; font-stretch: 62.5% 100%; + font-variation-settings: "wght" 400, "wdth" 62.5; font-display: block; src: url("../font/NotoSansDisplay-Italic.ttf") format("truetype"), url("/static/font/notosans_ext.woff2") format("woff2"), diff --git a/preview/style-guide/index.html b/preview/style-guide/index.html index 6301e29..701a228 100644 --- a/preview/style-guide/index.html +++ b/preview/style-guide/index.html @@ -641,11 +641,11 @@

Font Weight Variations

-

Light (300) — The quick brown fox jumps over the lazy dog.

-

Regular (400) — The quick brown fox jumps over the lazy dog.

-

Medium (500) — The quick brown fox jumps over the lazy dog.

-

Semibold (600) — The quick brown fox jumps over the lazy dog.

-

Bold (700) — The quick brown fox jumps over the lazy dog.

+

Light (300) — The quick brown fox jumps over the lazy dog.

+

Regular (400) — The quick brown fox jumps over the lazy dog.

+

Medium (500) — The quick brown fox jumps over the lazy dog.

+

Semibold (600) — The quick brown fox jumps over the lazy dog.

+

Bold (700) — The quick brown fox jumps over the lazy dog.

diff --git a/src/css/03-fonts.css b/src/css/03-fonts.css index 63c9d65..a10dc79 100644 --- a/src/css/03-fonts.css +++ b/src/css/03-fonts.css @@ -28,6 +28,7 @@ html:has(.boostlook) { font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; + font-variation-settings: "wght" 400, "wdth" 62.5; font-display: block; src: url("../font/NotoSansDisplay.ttf") format("truetype"), url("/static/font/notosans.woff2") format("woff2"), @@ -45,6 +46,7 @@ html:has(.boostlook) { font-style: italic; font-weight: 100 900; font-stretch: 62.5% 100%; + font-variation-settings: "wght" 400, "wdth" 62.5; font-display: block; src: url("../font/NotoSansDisplay-Italic.ttf") format("truetype"), url("/static/font/notosans_ext.woff2") format("woff2"),