Skip to content

Commit 45d4d34

Browse files
erikvansebillej-atkins
authored andcommitted
Use OpenSans font throughout
1 parent 5059b41 commit 45d4d34

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

567 KB
Binary file not shown.
517 KB
Binary file not shown.

src/components/layout.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,23 @@ export const Layout = ({
4242
return (
4343
<>
4444
<Head>
45+
{/* Open Sans font-face for global usage */}
46+
<style>{`
47+
@font-face {
48+
font-family: 'Open Sans';
49+
src: url('/fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
50+
font-weight: 1 1000;
51+
font-style: normal;
52+
font-display: swap;
53+
}
54+
@font-face {
55+
font-family: 'Open Sans';
56+
src: url('/fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
57+
font-weight: 1 1000;
58+
font-style: italic;
59+
font-display: swap;
60+
}
61+
`}</style>
4562
<meta content='IE=edge' httpEquiv='X-UA-Compatible' />
4663
<meta content='width=device-width, initial-scale=1' name='viewport' />
4764
<meta property='og:title' content={title} />

src/theme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const config = {
99
}
1010

1111
const fonts = {
12-
body: "'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
13-
heading: "'Inter Variable', 'Work Sans', system-ui, sans-serif",
12+
body: "'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
13+
heading: "'Open Sans', 'Work Sans', system-ui, sans-serif",
1414
}
1515

1616
export const customTheme = extendTheme(

0 commit comments

Comments
 (0)