Skip to content

Commit 8dd27af

Browse files
committed
style: self host SpaceMono
1 parent 4603e44 commit 8dd27af

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

internal/assets/css/index.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,20 @@
7878
--color-error-content: var(--color-error-content);
7979
}
8080

81+
@font-face {
82+
font-family: 'Space Mono';
83+
src: url('/dist/SpaceMono-Regular.woff2') format('woff2');
84+
font-weight: 400;
85+
font-style: normal;
86+
font-display: swap;
87+
}
88+
8189
@font-face {
8290
font-family: 'Caveat';
8391
src: url('/dist/Caveat-VariableFont_wght.ttf') format('truetype');
8492
font-weight: 400 700;
8593
font-style: normal;
86-
font-display: optional;
94+
font-display: swap;
8795
}
8896

8997
@layer components {
18 KB
Binary file not shown.

internal/assets/dist/index.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10347,12 +10347,19 @@
1034710347
}
1034810348
}
1034910349
}
10350+
@font-face {
10351+
font-family: 'Space Mono';
10352+
src: url('/dist/SpaceMono-Regular.woff2') format('woff2');
10353+
font-weight: 400;
10354+
font-style: normal;
10355+
font-display: swap;
10356+
}
1035010357
@font-face {
1035110358
font-family: 'Caveat';
1035210359
src: url('/dist/Caveat-VariableFont_wght.ttf') format('truetype');
1035310360
font-weight: 400 700;
1035410361
font-style: normal;
10355-
font-display: optional;
10362+
font-display: swap;
1035610363
}
1035710364
@layer components {
1035810365
.list-item-link {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{ define "styles" }}
2+
<link rel="preload" href="/dist/SpaceMono-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
23
<link rel="preload" href="/dist/Caveat-VariableFont_wght.ttf" as="font" type="font/ttf" crossorigin="anonymous" />
34
<link rel="stylesheet" href="/dist/index.css{{ if .Revision }}?revision={{ .Revision }}{{end}}" nonce="{{ .Nonce }}" />
45
{{ end }}

0 commit comments

Comments
 (0)