|
96 | 96 | SATOSHI FONT |
97 | 97 | ================================================ */ |
98 | 98 |
|
99 | | -@font-face { |
100 | | - font-family: "Satoshi"; |
101 | | - src: |
102 | | - url("/fonts/Satoshi/Satoshi-Light.woff2") format("woff2"), |
103 | | - url("/fonts/Satoshi/Satoshi-Light.woff") format("woff"); |
104 | | - font-weight: 300; |
105 | | - font-style: normal; |
106 | | - font-display: swap; |
107 | | -} |
108 | | - |
109 | 99 | @font-face { |
110 | 100 | font-family: "Satoshi"; |
111 | 101 | src: |
|
136 | 126 | font-display: swap; |
137 | 127 | } |
138 | 128 |
|
| 129 | +/* ================================================ |
| 130 | + INTER VARIABLE FONT (FOR BODY TEXT) |
| 131 | + ================================================ */ |
| 132 | + |
| 133 | +@font-face { |
| 134 | + font-family: "Inter"; |
| 135 | + src: url("/fonts/Inter/Inter-roman.var.woff2") format("woff2-variations"); |
| 136 | + font-weight: 100 900; |
| 137 | + font-style: normal; |
| 138 | + font-display: swap; |
| 139 | +} |
| 140 | + |
139 | 141 | /* ================================================ |
140 | 142 | IBM PLEX MONO FONT (FOR CODE BLOCKS) |
141 | 143 | ================================================ */ |
142 | 144 |
|
143 | 145 | @font-face { |
144 | 146 | font-family: "IBM Plex Mono"; |
145 | | - src: url("/fonts/IBMPlexMono/IBMPlexMono-Regular.ttf") format("truetype"); |
| 147 | + src: |
| 148 | + url("/fonts/IBMPlexMono/IBMPlexMono-Regular.woff2") format("woff2"), |
| 149 | + url("/fonts/IBMPlexMono/IBMPlexMono-Regular.ttf") format("truetype"); |
146 | 150 | font-weight: 400; |
147 | 151 | font-style: normal; |
148 | 152 | font-display: swap; |
149 | 153 | } |
150 | 154 |
|
151 | 155 | @font-face { |
152 | 156 | font-family: "IBM Plex Mono"; |
153 | | - src: url("/fonts/IBMPlexMono/IBMPlexMono-Medium.ttf") format("truetype"); |
| 157 | + src: |
| 158 | + url("/fonts/IBMPlexMono/IBMPlexMono-Medium.woff2") format("woff2"), |
| 159 | + url("/fonts/IBMPlexMono/IBMPlexMono-Medium.ttf") format("truetype"); |
154 | 160 | font-weight: 500; |
155 | 161 | font-style: normal; |
156 | 162 | font-display: swap; |
157 | 163 | } |
158 | 164 |
|
159 | 165 | @font-face { |
160 | 166 | font-family: "IBM Plex Mono"; |
161 | | - src: url("/fonts/IBMPlexMono/IBMPlexMono-SemiBold.ttf") format("truetype"); |
| 167 | + src: |
| 168 | + url("/fonts/IBMPlexMono/IBMPlexMono-SemiBold.woff2") format("woff2"), |
| 169 | + url("/fonts/IBMPlexMono/IBMPlexMono-SemiBold.ttf") format("truetype"); |
162 | 170 | font-weight: 600; |
163 | 171 | font-style: normal; |
164 | 172 | font-display: swap; |
165 | 173 | } |
166 | 174 |
|
167 | 175 | @font-face { |
168 | 176 | font-family: "IBM Plex Mono"; |
169 | | - src: url("/fonts/IBMPlexMono/IBMPlexMono-Bold.ttf") format("truetype"); |
| 177 | + src: |
| 178 | + url("/fonts/IBMPlexMono/IBMPlexMono-Bold.woff2") format("woff2"), |
| 179 | + url("/fonts/IBMPlexMono/IBMPlexMono-Bold.ttf") format("truetype"); |
170 | 180 | font-weight: 700; |
171 | 181 | font-style: normal; |
172 | 182 | font-display: swap; |
|
187 | 197 |
|
188 | 198 | /* Fonts */ |
189 | 199 | --vp-font-family-base: |
| 200 | + "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; |
| 201 | + --vp-font-family-heading: |
190 | 202 | "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; |
191 | 203 | --vp-font-family-mono: |
192 | 204 | "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", |
193 | 205 | monospace; |
194 | 206 | } |
195 | 207 |
|
| 208 | +/* Headings use Satoshi (display/geometric sans) */ |
| 209 | +.vp-doc h1, |
| 210 | +.vp-doc h2, |
| 211 | +.vp-doc h3, |
| 212 | +.vp-doc h4, |
| 213 | +.vp-doc h5, |
| 214 | +.vp-doc h6, |
| 215 | +.VPNavBar .title, |
| 216 | +.VPHero .name, |
| 217 | +.VPHero .tagline { |
| 218 | + font-family: var(--vp-font-family-heading); |
| 219 | +} |
| 220 | + |
| 221 | +/* Improved body text line-height for readability */ |
| 222 | +.vp-doc p, |
| 223 | +.vp-doc li { |
| 224 | + line-height: 1.75; |
| 225 | +} |
| 226 | + |
196 | 227 | /* Dark mode */ |
197 | 228 | .dark { |
198 | 229 | --vp-c-bg: #0a0a0a; |
|
299 | 330 | font-weight: 700; |
300 | 331 | padding: 5px 12px; |
301 | 332 | border-radius: 6px; |
302 | | - font-family: ui-monospace, SFMono-Regular, monospace; |
| 333 | + font-family: var(--vp-font-family-mono); |
303 | 334 | text-transform: uppercase; |
304 | 335 | } |
305 | 336 |
|
|
346 | 377 | } |
347 | 378 |
|
348 | 379 | .api-endpoint-badge .path { |
349 | | - font-family: ui-monospace, SFMono-Regular, monospace; |
| 380 | + font-family: var(--vp-font-family-mono); |
350 | 381 | font-size: 14px; |
351 | 382 | color: #6b7280; |
352 | 383 | } |
|
0 commit comments