Serve fonts locally
This commit is contained in:
parent
8669904edd
commit
485f58c61d
@ -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 />
|
||||
|
@ -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/"
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user