Self-host the Roboto Condensed font

Instead of linking to Google Fonts.
This commit is contained in:
Oliver Davies 2024-12-07 20:24:53 +00:00
parent 6144fae6d8
commit 8541c0a3e9
5 changed files with 12 additions and 2 deletions

11
assets/css/tailwind.css Normal file
View file

@ -0,0 +1,11 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
@font-face {
font-family: Roboto Condensed;
font-weight: 300 400 500 700;
src: url('../assets/fonts/RobotoCondensed-VariableFont_wght.ttf') format('truetype');
}
}

View file

@ -73,6 +73,7 @@ function npm:build:css {
tailwindcss \
--config tailwind.config.ts \
--input css/tailwind.css \
--output ../source/build/tailwind.css "${args[@]}"
}

View file

@ -4,8 +4,6 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300&display=swap" rel="stylesheet">
<link href="{{ site.assets.url }}/build/tailwind.css?v={{ site.assets.version }}" rel="stylesheet">
<link rel="canonical" href="{{ site.url }}{{ page.url|trim('/', 'right') }}">
<meta name="author" content="Oliver Davies">