Skip to content

Commit d03c991

Browse files
committed
font fix
1 parent bff5bfe commit d03c991

13 files changed

+43
-4
lines changed

src/css/custom.css

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
1-
/* Import custom fonts */
2-
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
1+
@font-face {
2+
font-family: 'Inter';
3+
font-style: normal;
4+
font-weight: 300;
5+
src: url('@site/static/fonts/inter/Inter_18pt-Light.ttf') format('truetype');
6+
}
7+
8+
@font-face {
9+
font-family: 'Inter';
10+
font-style: normal;
11+
font-weight: 400;
12+
src: url('@site/static/fonts/inter/Inter_18pt-Regular.ttf') format('truetype');
13+
}
14+
15+
@font-face {
16+
font-family: 'Inter';
17+
font-style: normal;
18+
font-weight: 500;
19+
src: url('@site/static/fonts/inter/Inter_18pt-Medium.ttf') format('truetype');
20+
}
21+
22+
@font-face {
23+
font-family: 'Inter';
24+
font-style: normal;
25+
font-weight: 600;
26+
src: url('@site/static/fonts/inter/Inter_18pt-SemiBold.ttf') format('truetype');
27+
}
28+
29+
@font-face {
30+
font-family: 'Inter';
31+
font-style: normal;
32+
font-weight: 700;
33+
src: url('@site/static/fonts/inter/Inter_18pt-Bold.ttf') format('truetype');
34+
}
335

436
/* Custom Properties */
537
:root {
@@ -30,8 +62,8 @@
3062
--status-gray-700: hsla(215, 22%, 21%, 1);
3163

3264
/* Typography */
33-
--ifm-font-family-base: 'Inter', system-ui, -apple-system;
34-
--ifm-heading-font-family: 'Space Grotesk', var(--ifm-font-family-base);
65+
--ifm-font-family-base: 'Inter', -apple-system, sans-serif;
66+
--ifm-heading-font-family: 'Inter', var(--ifm-font-family-base);
3567
--ifm-font-size-base: 15px;
3668
--ifm-h1-font-size: 2.5rem;
3769
--ifm-h2-font-size: 2rem;
@@ -141,6 +173,13 @@ html[data-theme='dark']::before {
141173
html {
142174
font-size: var(--ifm-font-size-base);
143175
letter-spacing: -0.01em;
176+
font-family: var(--ifm-font-family-base);
177+
}
178+
179+
body {
180+
font-family: var(--ifm-font-family-base);
181+
-webkit-font-smoothing: antialiased;
182+
-moz-osx-font-smoothing: grayscale;
144183
}
145184

146185
h1, h2, h3, h4, h5, h6 {
336 KB
Binary file not shown.
340 KB
Binary file not shown.
337 KB
Binary file not shown.
341 KB
Binary file not shown.
338 KB
Binary file not shown.
336 KB
Binary file not shown.
339 KB
Binary file not shown.
335 KB
Binary file not shown.
339 KB
Binary file not shown.

0 commit comments

Comments
 (0)