mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-21 19:31:57 +00:00
Add bold mono font (#7815)
--------- Co-authored-by: Nicolas Ettlin <nicolas.ettlin@me.com>
This commit is contained in:
BIN
public/fonts/Source-Code-Pro-Bold.woff2
Normal file
BIN
public/fonts/Source-Code-Pro-Bold.woff2
Normal file
Binary file not shown.
Binary file not shown.
@@ -124,7 +124,14 @@ export const Seo = withRouter(
|
||||
)}
|
||||
<link
|
||||
rel="preload"
|
||||
href="/fonts/Source-Code-Pro-Regular.woff2"
|
||||
href="https://react.dev/fonts/Source-Code-Pro-Regular.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://react.dev/fonts/Source-Code-Pro-Bold.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossOrigin="anonymous"
|
||||
|
||||
@@ -12,7 +12,17 @@
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('/fonts/Source-Code-Pro-Regular.woff2') format('woff2');
|
||||
src: url('https://react.dev/fonts/Source-Code-Pro-Regular.woff2')
|
||||
format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url('https://react.dev/fonts/Source-Code-Pro-Bold.woff2')
|
||||
format('woff2');
|
||||
}
|
||||
|
||||
/* Latin */
|
||||
|
||||
Reference in New Issue
Block a user