|
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 | +} |
3 | 35 |
|
4 | 36 | /* Custom Properties */ |
5 | 37 | :root { |
|
30 | 62 | --status-gray-700: hsla(215, 22%, 21%, 1); |
31 | 63 |
|
32 | 64 | /* 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); |
35 | 67 | --ifm-font-size-base: 15px; |
36 | 68 | --ifm-h1-font-size: 2.5rem; |
37 | 69 | --ifm-h2-font-size: 2rem; |
@@ -141,6 +173,18 @@ html[data-theme='dark']::before { |
141 | 173 | html { |
142 | 174 | font-size: var(--ifm-font-size-base); |
143 | 175 | 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; |
144 | 188 | } |
145 | 189 |
|
146 | 190 | h1, h2, h3, h4, h5, h6 { |
|
0 commit comments