Serve fonts locally

This commit is contained in:
James Chapman 2024-10-05 17:41:24 +01:00
parent 8669904edd
commit 485f58c61d
Signed by: jamsch0
GPG Key ID: 765FE58130277547
3 changed files with 6 additions and 9 deletions

View File

@ -9,6 +9,7 @@
<meta name="view-transition" content="same-origin" /> <meta name="view-transition" content="same-origin" />
<meta name="turbo-prefetch" content="false" /> <meta name="turbo-prefetch" content="false" />
<link rel="stylesheet" type="text/css" href="@Assets["lib/inter/index.css"]" data-turbo-track="reload" />
<link rel="stylesheet" type="text/css" href="@Assets["css/main.css"]" data-turbo-track="reload" /> <link rel="stylesheet" type="text/css" href="@Assets["css/main.css"]" data-turbo-track="reload" />
<ImportMap /> <ImportMap />

View File

@ -2,6 +2,10 @@
"version": "1.0", "version": "1.0",
"defaultProvider": "unpkg", "defaultProvider": "unpkg",
"libraries": [ "libraries": [
{
"library": "@fontsource-variable/inter@5.1.0",
"destination": "wwwroot/lib/inter/"
},
{ {
"library": "@hotwired/turbo@8.0.4", "library": "@hotwired/turbo@8.0.4",
"destination": "wwwroot/lib/hotwired/turbo/" "destination": "wwwroot/lib/hotwired/turbo/"

View File

@ -1,16 +1,8 @@
@import url("https://rsms.me/inter/inter.css");
:root { :root {
font-family: "Inter", sans-serif; font-family: "Inter Variable", sans-serif;
color-scheme: light; color-scheme: light;
} }
@supports (font-variation-settings: normal) {
:root {
font-family: "Inter var", sans-serif;
}
}
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;