Skip to content

Commit b0b4059

Browse files
committed
Switched font from SF Pro to Inter
1 parent 0bcd79d commit b0b4059

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

docs/page.css

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--color-blue: #049EF4;
33
--text-color: #444;
44

5-
--font-size: 16px;
5+
--font-size: 14px;
66
--line-height: 24px;
77
--font-size-sanserif: 1.128rem;
88
--line-height-sanserif: 1.74rem;
@@ -22,21 +22,26 @@
2222
font-style: normal;
2323
font-weight: 400;
2424
}
25-
2625
@font-face {
27-
font-family: 'SF-Pro-Text';
28-
src: local('SF-Pro-Text'), url('../files/SF-Pro-Text-Regular.otf');
29-
font-weight: normal;
30-
font-style: normal;
26+
font-family: 'Inter';
27+
font-style: normal;
28+
font-weight: 400;
29+
src: local('Inter-Regular'), url("../files/Inter-Regular.woff2?v=3.6") format("woff2");
30+
}
31+
@font-face {
32+
font-family: 'Inter';
33+
font-style: normal;
34+
font-weight: 600;
35+
src: local('Inter-SemiBold'), url("../files/Inter-SemiBold.woff2?v=3.6") format("woff2");
3136
}
3237

3338
html {
39+
font-family: 'Inter', sans-serif;
3440
font-size: var(--font-size);
3541
line-height: var(--line-height);
3642
}
3743

3844
body {
39-
font-family: 'SF-Pro-Text', sans-serif;
4045
color: var(--text-color);
4146
tab-size: 4;
4247
overflow: auto;
@@ -115,8 +120,6 @@ li ol {
115120
pre,
116121
code {
117122
margin: 1.2rem calc(-1 * var(--page-padding));
118-
font-size: calc(var(--font-size) - 2px);
119-
line-height: calc(var(--line-height) - 2px);
120123
}
121124

122125
ol code,
@@ -151,7 +154,7 @@ table td:first-child {
151154

152155
code {
153156
display: block;
154-
padding: 1.5rem var(--page-padding);
157+
padding: 1.25rem var(--page-padding);
155158
white-space: pre-wrap;
156159
overflow: auto;
157160
box-sizing: border-box;
@@ -170,7 +173,7 @@ table code {
170173
}
171174

172175
strong {
173-
font-weight: bold;
176+
font-weight: 600;
174177
}
175178

176179

files/Inter-Regular.woff2

86.7 KB
Binary file not shown.

files/Inter-SemiBold.woff2

92.9 KB
Binary file not shown.

files/RobotoMono-Medium.woff2

10.5 KB
Binary file not shown.

files/SF-Pro-Text-Regular.otf

-337 KB
Binary file not shown.

0 commit comments

Comments
 (0)