Skip to content

Commit ac9fadf

Browse files
authored
Merge pull request #24 from status-im/nadeem/fix-font
feat: add Inter 18p font for design consistency
2 parents 73f2993 + f0db245 commit ac9fadf

13 files changed

+48
-4
lines changed

src/css/custom.css

Lines changed: 48 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,18 @@ 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;
183+
}
184+
185+
[data-theme='dark'] .DocSearch,
186+
[data-theme='light'] .DocSearch {
187+
font-family: 'Inter', -apple-system, sans-serif;
144188
}
145189

146190
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)