Skip to content

Commit d755a42

Browse files
author
Andrey Okonetchnikov
committed
fix: Override browser default and adapt to use with gatsby-theme
1 parent 193ff27 commit d755a42

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/theme.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default {
44
"https://fonts.googleapis.com/css?family=Fira+Mono:400,700|Work+Sans:400,700&subset=latin-ext",
55
fonts: {
66
body: "Work Sans, sans-serif",
7+
heading: "Work Sans, sans-serif",
78
monospace: 'MonoLisa, "Fira Code", monospace',
89
},
910
fontSizes: {
@@ -13,7 +14,6 @@ export default {
1314
xl: "4em",
1415
},
1516
colors: {
16-
heading: "inherit",
1717
text: "rgb(27, 37, 79)",
1818
background: "#fff",
1919
link: "rgb(27, 37, 79)",
@@ -28,12 +28,18 @@ export default {
2828
heading: {
2929
m: 5,
3030
fontSize: "xl",
31+
fontFamily: "heading",
3132
textAlign: "center",
3233
},
34+
body: {
35+
mx: 5,
36+
},
3337
},
3438
styles: {
3539
root: {
36-
fontSize: "1vmax",
40+
bg: "background",
41+
fontSize: "2vmax", // Based on the global 16px font-size
42+
fontFamily: "body",
3743
fontFeatureSettings: `'kern', 'pnum', common-ligatures contextual historical-ligatures`,
3844
WebkitFontKerning: "normal",
3945
fontKerning: "normal",
@@ -43,9 +49,6 @@ export default {
4349
fontFamily: "monospace",
4450
},
4551
},
46-
Slide: {
47-
// justifyContent: "start",
48-
},
4952
Split: {
5053
px: 5,
5154
width: "100%",
@@ -63,6 +66,9 @@ export default {
6366
variant: "text.heading",
6467
fontSize: "m",
6568
},
69+
p: {
70+
variant: "text.body",
71+
},
6672
ul: {
6773
p: 0,
6874
},

0 commit comments

Comments
 (0)