Skip to content

Commit 0cfbc8a

Browse files
committed
Put default font of <body> into CSS reset
1 parent 5ff5a88 commit 0cfbc8a

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/base.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
@forward "base/reset";
22

3-
:root {
4-
--font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
5-
Roboto, Oxygen, Ubuntu, Cantarell, "Noto Sans", "Open Sans",
6-
"Helvetica Neue", sans-serif;
7-
}
8-
93
:root,
104
:root[data-scheme="auto"] {
115
color-scheme: light dark;
@@ -26,8 +20,6 @@
2620
}
2721

2822
:root {
29-
font-family: var(--font-family);
30-
3123
background-color: var(--bg-colour);
3224
color: var(--text-colour);
3325
}

src/base/_reset.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ html {
1010

1111
body {
1212
margin: 0;
13+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
14+
Roboto, Oxygen, Ubuntu, Cantarell, "Noto Sans", "Open Sans",
15+
"Helvetica Neue", sans-serif;
1316
-webkit-font-smoothing: antialiased;
1417
}
1518

0 commit comments

Comments
 (0)