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="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" />
<ImportMap />

View File

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

View File

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