Skip to content

Commit 69ce5d3

Browse files
Add bold mono font (#7815)
--------- Co-authored-by: Nicolas Ettlin <[email protected]>
1 parent 9fb0519 commit 69ce5d3

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed
75.6 KB
Binary file not shown.
64.9 KB
Binary file not shown.

src/components/Seo.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,14 @@ export const Seo = withRouter(
124124
)}
125125
<link
126126
rel="preload"
127-
href="/fonts/Source-Code-Pro-Regular.woff2"
127+
href="https://react.dev/fonts/Source-Code-Pro-Regular.woff2"
128+
as="font"
129+
type="font/woff2"
130+
crossOrigin="anonymous"
131+
/>
132+
<link
133+
rel="preload"
134+
href="https://react.dev/fonts/Source-Code-Pro-Bold.woff2"
128135
as="font"
129136
type="font/woff2"
130137
crossOrigin="anonymous"

src/styles/index.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,17 @@
1212
font-style: normal;
1313
font-weight: 400;
1414
font-display: swap;
15-
src: url('/fonts/Source-Code-Pro-Regular.woff2') format('woff2');
15+
src: url('https://react.dev/fonts/Source-Code-Pro-Regular.woff2')
16+
format('woff2');
17+
}
18+
19+
@font-face {
20+
font-family: 'Source Code Pro';
21+
font-style: normal;
22+
font-weight: 700;
23+
font-display: swap;
24+
src: url('https://react.dev/fonts/Source-Code-Pro-Bold.woff2')
25+
format('woff2');
1626
}
1727

1828
/* Latin */

0 commit comments

Comments
 (0)