diff options
| author | Theo Browne <me@t3.gg> | 2025-02-14 23:04:53 -0800 |
|---|---|---|
| committer | Theo Browne <me@t3.gg> | 2025-02-14 23:04:53 -0800 |
| commit | 4f451f8479d89aa900095fdefe39b6d070a61867 (patch) | |
| tree | f127cffcf04003d93433e9b7a2cb9c0d988e7b03 /src | |
| parent | d91a6287a22add7f0e8fa26359d8072e6f84ab04 (diff) | |
| download | unkagi-4f451f8479d89aa900095fdefe39b6d070a61867.tar.xz unkagi-4f451f8479d89aa900095fdefe39b6d070a61867.zip | |
better font loading
Diffstat (limited to 'src')
| -rw-r--r-- | src/global.css | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/global.css b/src/global.css index 5d98129..3749354 100644 --- a/src/global.css +++ b/src/global.css @@ -1,8 +1,17 @@ -@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"); +/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"); */ + +/* Font fallback that closely matches Inter metrics */ +@font-face { + font-family: "Inter Fallback"; + size-adjust: 107%; + ascent-override: 90%; + src: local("Arial"); +} :root { font-family: Inter, + "Inter Fallback", system-ui, -apple-system, BlinkMacSystemFont, |
