Skip to content

Commit 378c6f8

Browse files
authored
Merge pull request #568 from lachlanjc/patch-3
Use backwards-compatible font stack for base theme
2 parents 4e6a7eb + 0a653c9 commit 378c6f8

File tree

26 files changed

+87
-91
lines changed

26 files changed

+87
-91
lines changed

examples/create-react-app/src/theme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export default {
66
secondary: '#609',
77
},
88
fonts: {
9-
body: 'system-ui, sans-serif',
9+
body:
10+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
1011
heading: 'inherit',
1112
},
1213
styles: {

examples/custom-pragma/src/theme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export default {
66
secondary: '#609',
77
},
88
fonts: {
9-
body: 'system-ui, sans-serif',
9+
body:
10+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
1011
heading: 'inherit',
1112
monospace: 'Menlo, monospace',
1213
},

examples/dark-mode/src/theme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export default {
1414
},
1515
},
1616
fonts: {
17-
body: 'system-ui, sans-serif',
17+
body:
18+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
1819
heading: 'inherit',
1920
},
2021
lineHeights: {

examples/gatsby-plugin/src/gatsby-plugin-theme-ui/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export default {
88
secondary: '#609',
99
},
1010
fonts: {
11-
body: 'system-ui, sans-serif',
11+
body:
12+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
1213
heading: 'inherit',
1314
},
1415
lineHeights: {

examples/gatsby/src/theme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export default {
66
secondary: '#609',
77
},
88
fonts: {
9-
body: 'system-ui, sans-serif',
9+
body:
10+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
1011
heading: 'inherit',
1112
},
1213
styles: {

examples/next/src/theme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export default {
1515
},
1616
},
1717
fonts: {
18-
body: 'system-ui, sans-serif',
18+
body:
19+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
1920
heading: 'inherit',
2021
},
2122
styles: {

examples/prism/src/theme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export default {
77
lightgray: '#fafafa',
88
},
99
fonts: {
10-
body: 'system-ui, sans-serif',
10+
body:
11+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
1112
heading: 'inherit',
1213
monospace: 'Menlo, monospace',
1314
},

packages/chrome/src/theme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export default {
2424
},
2525
fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 96, 128],
2626
fonts: {
27-
body: 'system-ui, sans-serif',
27+
body:
28+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
2829
heading: 'inherit',
2930
monospace: 'Menlo, monospace',
3031
},

packages/custom-properties/test/__snapshots__/test.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Object {
1010
"--color-primary": "#07c",
1111
"--color-secondary": "#05a",
1212
"--color-text": "#000",
13-
"--font-body": "system-ui, sans-serif",
14-
"--font-heading": "system-ui, sans-serif",
13+
"--font-body": "system-ui, -apple-system, BlinkMacSystemFont, \\"Segoe UI\\", Roboto, \\"Helvetica Neue\\", sans-serif",
14+
"--font-heading": "system-ui, -apple-system, BlinkMacSystemFont, \\"Segoe UI\\", Roboto, \\"Helvetica Neue\\", sans-serif",
1515
"--font-monospace": "Menlo, monospace",
1616
"--fontWeight-body": 400,
1717
"--fontWeight-bold": 700,
@@ -41,8 +41,8 @@ Object {
4141
"--🍭-color-primary": "#07c",
4242
"--🍭-color-secondary": "#05a",
4343
"--🍭-color-text": "#000",
44-
"--🍭-font-body": "system-ui, sans-serif",
45-
"--🍭-font-heading": "system-ui, sans-serif",
44+
"--🍭-font-body": "system-ui, -apple-system, BlinkMacSystemFont, \\"Segoe UI\\", Roboto, \\"Helvetica Neue\\", sans-serif",
45+
"--🍭-font-heading": "system-ui, -apple-system, BlinkMacSystemFont, \\"Segoe UI\\", Roboto, \\"Helvetica Neue\\", sans-serif",
4646
"--🍭-font-monospace": "Menlo, monospace",
4747
"--🍭-fontWeight-body": 400,
4848
"--🍭-fontWeight-bold": 700,

packages/custom-properties/test/test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ const theme = {
1818
},
1919
},
2020
fonts: {
21-
body: 'system-ui, sans-serif',
22-
heading: 'system-ui, sans-serif',
21+
body:
22+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
23+
heading:
24+
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
2325
monospace: 'Menlo, monospace',
2426
},
2527
fontWeights: {

0 commit comments

Comments
 (0)