Skip to content

Commit 2669e9d

Browse files
committed
font flash #476
1 parent 0c193dd commit 2669e9d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Diff for: book/9-end/lib/theme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const theme = createTheme({
1111
},
1212
},
1313
typography: {
14-
fontFamily: 'IBM Plex Mono, monospace',
14+
fontFamily: ['IBM Plex Mono', 'monospace'].join(','),
1515
button: {
1616
textTransform: 'none',
1717
},

Diff for: book/9-end/pages/_document.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class MyDocument extends Document {
5858
href="https://storage.googleapis.com/builderbook/favicon32.png"
5959
/>
6060

61+
<link rel="stylesheet" href="/fonts/server.css" />
6162
<link rel="stylesheet" href="https://storage.googleapis.com/builderbook/vs.min.css" />
6263

6364
<style>

Diff for: builderbook/pages/_app.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function MyApp({ Component, pageProps }) {
5050
{/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */}
5151
<Head>
5252
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
53+
<link rel="stylesheet" href={isServer ? '/fonts/server.css' : '/fonts/cdn.css'} />
5354
<link
5455
rel="stylesheet"
5556
href="https://storage.googleapis.com/async-await/nprogress-light-spinner.css"

0 commit comments

Comments
 (0)