The best way to control Claude Code, Codex and more from any computer or phone
perf(marketing): serve website fonts locally (#9701)
Theo Browne committed
Sep 4, 2026 at 08:31 UTC
010d6bb1b5281cb1e6eacf1ee0f2500973242836
12 files changed
+386
-4
apps/marketing/public/fonts/dm-sans-OFL.txt
new
+93
@@ -0,0 +1,93 @@
1
+Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
2
+
3
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+This license is copied below, and is also available with a FAQ at:
5
+https://scripts.sil.org/OFL
6
+
7
+
8
+-----------------------------------------------------------
9
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+-----------------------------------------------------------
11
+
12
+PREAMBLE
13
+The goals of the Open Font License (OFL) are to stimulate worldwide
14
+development of collaborative font projects, to support the font creation
15
+efforts of academic and linguistic communities, and to provide a free and
16
+open framework in which fonts may be shared and improved in partnership
17
+with others.
18
+
19
+The OFL allows the licensed fonts to be used, studied, modified and
20
+redistributed freely as long as they are not sold by themselves. The
21
+fonts, including any derivative works, can be bundled, embedded,
22
+redistributed and/or sold with any software provided that any reserved
23
+names are not used by derivative works. The fonts and derivatives,
24
+however, cannot be released under any other type of license. The
25
+requirement for fonts to remain under this license does not apply
26
+to any document created using the fonts or their derivatives.
27
+
28
+DEFINITIONS
29
+"Font Software" refers to the set of files released by the Copyright
30
+Holder(s) under this license and clearly marked as such. This may
31
+include source files, build scripts and documentation.
32
+
33
+"Reserved Font Name" refers to any names specified as such after the
34
+copyright statement(s).
35
+
36
+"Original Version" refers to the collection of Font Software components as
37
+distributed by the Copyright Holder(s).
38
+
39
+"Modified Version" refers to any derivative made by adding to, deleting,
40
+or substituting -- in part or in whole -- any of the components of the
41
+Original Version, by changing formats or by porting the Font Software to a
42
+new environment.
43
+
44
+"Author" refers to any designer, engineer, programmer, technical
45
+writer or other person who contributed to the Font Software.
46
+
47
+PERMISSION & CONDITIONS
48
+Permission is hereby granted, free of charge, to any person obtaining
49
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+redistribute, and sell modified and unmodified copies of the Font
51
+Software, subject to the following conditions:
52
+
53
+1) Neither the Font Software nor any of its individual components,
54
+in Original or Modified Versions, may be sold by itself.
55
+
56
+2) Original or Modified Versions of the Font Software may be bundled,
57
+redistributed and/or sold with any software, provided that each copy
58
+contains the above copyright notice and this license. These can be
59
+included either as stand-alone text files, human-readable headers or
60
+in the appropriate machine-readable metadata fields within text or
61
+binary files as long as those fields can be easily viewed by the user.
62
+
63
+3) No Modified Version of the Font Software may use the Reserved Font
64
+Name(s) unless explicit written permission is granted by the corresponding
65
+Copyright Holder. This restriction only applies to the primary font name as
66
+presented to the users.
67
+
68
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+Software shall not be used to promote, endorse or advertise any
70
+Modified Version, except to acknowledge the contribution(s) of the
71
+Copyright Holder(s) and the Author(s) or with their explicit written
72
+permission.
73
+
74
+5) The Font Software, modified or unmodified, in part or in whole,
75
+must be distributed entirely under this license, and must not be
76
+distributed under any other license. The requirement for fonts to
77
+remain under this license does not apply to any document created
78
+using the Font Software.
79
+
80
+TERMINATION
81
+This license becomes null and void if any of the above conditions are
82
+not met.
83
+
84
+DISCLAIMER
85
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+OTHER DEALINGS IN THE FONT SOFTWARE.
apps/marketing/public/fonts/jetbrains-mono-OFL.txt
new
+93
@@ -0,0 +1,93 @@
1
+Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
+
3
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+
5
+This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL
6
+
7
+
8
+-----------------------------------------------------------
9
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+-----------------------------------------------------------
11
+
12
+PREAMBLE
13
+The goals of the Open Font License (OFL) are to stimulate worldwide
14
+development of collaborative font projects, to support the font creation
15
+efforts of academic and linguistic communities, and to provide a free and
16
+open framework in which fonts may be shared and improved in partnership
17
+with others.
18
+
19
+The OFL allows the licensed fonts to be used, studied, modified and
20
+redistributed freely as long as they are not sold by themselves. The
21
+fonts, including any derivative works, can be bundled, embedded,
22
+redistributed and/or sold with any software provided that any reserved
23
+names are not used by derivative works. The fonts and derivatives,
24
+however, cannot be released under any other type of license. The
25
+requirement for fonts to remain under this license does not apply
26
+to any document created using the fonts or their derivatives.
27
+
28
+DEFINITIONS
29
+"Font Software" refers to the set of files released by the Copyright
30
+Holder(s) under this license and clearly marked as such. This may
31
+include source files, build scripts and documentation.
32
+
33
+"Reserved Font Name" refers to any names specified as such after the
34
+copyright statement(s).
35
+
36
+"Original Version" refers to the collection of Font Software components as
37
+distributed by the Copyright Holder(s).
38
+
39
+"Modified Version" refers to any derivative made by adding to, deleting,
40
+or substituting -- in part or in whole -- any of the components of the
41
+Original Version, by changing formats or by porting the Font Software to a
42
+new environment.
43
+
44
+"Author" refers to any designer, engineer, programmer, technical
45
+writer or other person who contributed to the Font Software.
46
+
47
+PERMISSION & CONDITIONS
48
+Permission is hereby granted, free of charge, to any person obtaining
49
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+redistribute, and sell modified and unmodified copies of the Font
51
+Software, subject to the following conditions:
52
+
53
+1) Neither the Font Software nor any of its individual components,
54
+in Original or Modified Versions, may be sold by itself.
55
+
56
+2) Original or Modified Versions of the Font Software may be bundled,
57
+redistributed and/or sold with any software, provided that each copy
58
+contains the above copyright notice and this license. These can be
59
+included either as stand-alone text files, human-readable headers or
60
+in the appropriate machine-readable metadata fields within text or
61
+binary files as long as those fields can be easily viewed by the user.
62
+
63
+3) No Modified Version of the Font Software may use the Reserved Font
64
+Name(s) unless explicit written permission is granted by the corresponding
65
+Copyright Holder. This restriction only applies to the primary font name as
66
+presented to the users.
67
+
68
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+Software shall not be used to promote, endorse or advertise any
70
+Modified Version, except to acknowledge the contribution(s) of the
71
+Copyright Holder(s) and the Author(s) or with their explicit written
72
+permission.
73
+
74
+5) The Font Software, modified or unmodified, in part or in whole,
75
+must be distributed entirely under this license, and must not be
76
+distributed under any other license. The requirement for fonts to
77
+remain under this license does not apply to any document created
78
+using the Font Software.
79
+
80
+TERMINATION
81
+This license becomes null and void if any of the above conditions are
82
+not met.
83
+
84
+DISCLAIMER
85
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+OTHER DEALINGS IN THE FONT SOFTWARE.
apps/marketing/src/assets/fonts/dm-sans-latin-ext.woff2
Binary files /dev/null and b/apps/marketing/src/assets/fonts/dm-sans-latin-ext.woff2 differ
apps/marketing/src/assets/fonts/dm-sans-latin.woff2
Binary files /dev/null and b/apps/marketing/src/assets/fonts/dm-sans-latin.woff2 differ
apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic-ext.woff2
Binary files /dev/null and b/apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic-ext.woff2 differ
apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic.woff2
Binary files /dev/null and b/apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic.woff2 differ
apps/marketing/src/assets/fonts/jetbrains-mono-greek.woff2
Binary files /dev/null and b/apps/marketing/src/assets/fonts/jetbrains-mono-greek.woff2 differ
apps/marketing/src/assets/fonts/jetbrains-mono-latin-ext.woff2
Binary files /dev/null and b/apps/marketing/src/assets/fonts/jetbrains-mono-latin-ext.woff2 differ
apps/marketing/src/assets/fonts/jetbrains-mono-latin.woff2
Binary files /dev/null and b/apps/marketing/src/assets/fonts/jetbrains-mono-latin.woff2 differ
apps/marketing/src/assets/fonts/jetbrains-mono-vietnamese.woff2
Binary files /dev/null and b/apps/marketing/src/assets/fonts/jetbrains-mono-vietnamese.woff2 differ
apps/marketing/src/layouts/Layout.astro
+7
-4
@@ -1,6 +1,8 @@
1
---
2
import { Image } from "astro:assets";
3
import appIcon from "../assets/icon.webp";
4
+import dmSansLatinUrl from "../assets/fonts/dm-sans-latin.woff2?url";
5
+import "../styles/fonts.css";
6
import {
7
ANDROID_PLAY_STORE_URL,
8
GITHUB_REPOSITORY_URL,
@@ -26,11 +28,12 @@ const {
28
<meta charset="UTF-8" />
29
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
30
<meta name="description" content={description} />
29
- <link rel="preconnect" href="https://fonts.googleapis.com" />
30
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
31
<link
32
- href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=JetBrains+Mono:wght@400;500&display=swap"
33
- rel="stylesheet"
32
+ rel="preload"
33
+ href={dmSansLatinUrl}
34
+ as="font"
35
+ type="font/woff2"
36
+ crossorigin="anonymous"
37
/>
38
<link rel="icon" href="/favicon.ico" sizes="48x48" />
39
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32" />
apps/marketing/src/styles/fonts.css
new
+193
@@ -0,0 +1,193 @@
1
+/*! DM Sans v17 and JetBrains Mono v24. Licenses: /fonts/dm-sans-OFL.txt and /fonts/jetbrains-mono-OFL.txt. */
2
+/* Keep subset bytes out of the stylesheet so unused glyph ranges do not add transfer size. */
3
+/* latin-ext */
4
+@font-face {
5
+ font-family: "DM Sans";
6
+ font-style: normal;
7
+ font-weight: 400;
8
+ font-display: swap;
9
+ src: url(../assets/fonts/dm-sans-latin-ext.woff2?no-inline) format("woff2");
10
+ unicode-range:
11
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
12
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
13
+ U+A720-A7FF;
14
+}
15
+/* latin */
16
+@font-face {
17
+ font-family: "DM Sans";
18
+ font-style: normal;
19
+ font-weight: 400;
20
+ font-display: swap;
21
+ src: url(../assets/fonts/dm-sans-latin.woff2?no-inline) format("woff2");
22
+ unicode-range:
23
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
24
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
25
+}
26
+/* latin-ext */
27
+@font-face {
28
+ font-family: "DM Sans";
29
+ font-style: normal;
30
+ font-weight: 500;
31
+ font-display: swap;
32
+ src: url(../assets/fonts/dm-sans-latin-ext.woff2?no-inline) format("woff2");
33
+ unicode-range:
34
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
35
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
36
+ U+A720-A7FF;
37
+}
38
+/* latin */
39
+@font-face {
40
+ font-family: "DM Sans";
41
+ font-style: normal;
42
+ font-weight: 500;
43
+ font-display: swap;
44
+ src: url(../assets/fonts/dm-sans-latin.woff2?no-inline) format("woff2");
45
+ unicode-range:
46
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
47
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
48
+}
49
+/* latin-ext */
50
+@font-face {
51
+ font-family: "DM Sans";
52
+ font-style: normal;
53
+ font-weight: 600;
54
+ font-display: swap;
55
+ src: url(../assets/fonts/dm-sans-latin-ext.woff2?no-inline) format("woff2");
56
+ unicode-range:
57
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
58
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
59
+ U+A720-A7FF;
60
+}
61
+/* latin */
62
+@font-face {
63
+ font-family: "DM Sans";
64
+ font-style: normal;
65
+ font-weight: 600;
66
+ font-display: swap;
67
+ src: url(../assets/fonts/dm-sans-latin.woff2?no-inline) format("woff2");
68
+ unicode-range:
69
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
70
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
71
+}
72
+/* cyrillic-ext */
73
+@font-face {
74
+ font-family: "JetBrains Mono";
75
+ font-style: normal;
76
+ font-weight: 400;
77
+ font-display: swap;
78
+ src: url(../assets/fonts/jetbrains-mono-cyrillic-ext.woff2?no-inline) format("woff2");
79
+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
80
+}
81
+/* cyrillic */
82
+@font-face {
83
+ font-family: "JetBrains Mono";
84
+ font-style: normal;
85
+ font-weight: 400;
86
+ font-display: swap;
87
+ src: url(../assets/fonts/jetbrains-mono-cyrillic.woff2?no-inline) format("woff2");
88
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
89
+}
90
+/* greek */
91
+@font-face {
92
+ font-family: "JetBrains Mono";
93
+ font-style: normal;
94
+ font-weight: 400;
95
+ font-display: swap;
96
+ src: url(../assets/fonts/jetbrains-mono-greek.woff2?no-inline) format("woff2");
97
+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
98
+}
99
+/* vietnamese */
100
+@font-face {
101
+ font-family: "JetBrains Mono";
102
+ font-style: normal;
103
+ font-weight: 400;
104
+ font-display: swap;
105
+ src: url(../assets/fonts/jetbrains-mono-vietnamese.woff2?no-inline) format("woff2");
106
+ unicode-range:
107
+ U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
108
+ U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
109
+}
110
+/* latin-ext */
111
+@font-face {
112
+ font-family: "JetBrains Mono";
113
+ font-style: normal;
114
+ font-weight: 400;
115
+ font-display: swap;
116
+ src: url(../assets/fonts/jetbrains-mono-latin-ext.woff2?no-inline) format("woff2");
117
+ unicode-range:
118
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
119
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
120
+ U+A720-A7FF;
121
+}
122
+/* latin */
123
+@font-face {
124
+ font-family: "JetBrains Mono";
125
+ font-style: normal;
126
+ font-weight: 400;
127
+ font-display: swap;
128
+ src: url(../assets/fonts/jetbrains-mono-latin.woff2?no-inline) format("woff2");
129
+ unicode-range:
130
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
131
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
132
+}
133
+/* cyrillic-ext */
134
+@font-face {
135
+ font-family: "JetBrains Mono";
136
+ font-style: normal;
137
+ font-weight: 500;
138
+ font-display: swap;
139
+ src: url(../assets/fonts/jetbrains-mono-cyrillic-ext.woff2?no-inline) format("woff2");
140
+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
141
+}
142
+/* cyrillic */
143
+@font-face {
144
+ font-family: "JetBrains Mono";
145
+ font-style: normal;
146
+ font-weight: 500;
147
+ font-display: swap;
148
+ src: url(../assets/fonts/jetbrains-mono-cyrillic.woff2?no-inline) format("woff2");
149
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
150
+}
151
+/* greek */
152
+@font-face {
153
+ font-family: "JetBrains Mono";
154
+ font-style: normal;
155
+ font-weight: 500;
156
+ font-display: swap;
157
+ src: url(../assets/fonts/jetbrains-mono-greek.woff2?no-inline) format("woff2");
158
+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
159
+}
160
+/* vietnamese */
161
+@font-face {
162
+ font-family: "JetBrains Mono";
163
+ font-style: normal;
164
+ font-weight: 500;
165
+ font-display: swap;
166
+ src: url(../assets/fonts/jetbrains-mono-vietnamese.woff2?no-inline) format("woff2");
167
+ unicode-range:
168
+ U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
169
+ U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
170
+}
171
+/* latin-ext */
172
+@font-face {
173
+ font-family: "JetBrains Mono";
174
+ font-style: normal;
175
+ font-weight: 500;
176
+ font-display: swap;
177
+ src: url(../assets/fonts/jetbrains-mono-latin-ext.woff2?no-inline) format("woff2");
178
+ unicode-range:
179
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
180
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
181
+ U+A720-A7FF;
182
+}
183
+/* latin */
184
+@font-face {
185
+ font-family: "JetBrains Mono";
186
+ font-style: normal;
187
+ font-weight: 500;
188
+ font-display: swap;
189
+ src: url(../assets/fonts/jetbrains-mono-latin.woff2?no-inline) format("woff2");
190
+ unicode-range:
191
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
192
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
193
+}