Self-host the Roboto Condensed font
Instead of linking to Google Fonts.
This commit is contained in:
parent
6144fae6d8
commit
8541c0a3e9
11
assets/css/tailwind.css
Normal file
11
assets/css/tailwind.css
Normal 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');
|
||||
}
|
||||
}
|
|
@ -73,6 +73,7 @@ function npm:build:css {
|
|||
|
||||
tailwindcss \
|
||||
--config tailwind.config.ts \
|
||||
--input css/tailwind.css \
|
||||
--output ../source/build/tailwind.css "${args[@]}"
|
||||
}
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
BIN
source/assets/fonts/RobotoCondensed-Italic-VariableFont_wght.ttf
Normal file
BIN
source/assets/fonts/RobotoCondensed-Italic-VariableFont_wght.ttf
Normal file
Binary file not shown.
BIN
source/assets/fonts/RobotoCondensed-VariableFont_wght.ttf
Normal file
BIN
source/assets/fonts/RobotoCondensed-VariableFont_wght.ttf
Normal file
Binary file not shown.
Loading…
Reference in a new issue