From 88e3246e1ea66825cdf09f3f21227b173b542d7b Mon Sep 17 00:00:00 2001 From: Swenschaeferjohann Date: Fri, 26 Dec 2025 09:33:18 +0100 Subject: [PATCH] load via @import --- docs.json | 3 +++ style.css | 12 ++---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/docs.json b/docs.json index 02fd5ef0..ee7a14f3 100644 --- a/docs.json +++ b/docs.json @@ -7,6 +7,9 @@ "light": "#0066FF", "dark": "#0066FF" }, + "fonts": { + "family": "Inter" + }, "favicon": "/favicon.png", "appearance": { "default": "light" diff --git a/style.css b/style.css index e4bc3b7d..342cd4b1 100644 --- a/style.css +++ b/style.css @@ -1,10 +1,2 @@ -@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:wght@600&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); -@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:wght@600&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); - -body{ - font-family: 'Inter', 'IBM Plex Mono'; -} - -h1,h2,h3,h4,h5,h6{ - font-family: 'Inter', 'IBM Plex Mono'; -} +/* Fonts are configured in `docs.json` via the `fonts` property. + Keeping this file free of `@import` prevents delayed font loading flashes on first paint. */