|
93 | 93 | } |
94 | 94 |
|
95 | 95 | /* ================================================ |
96 | | - SATOSHI FONT |
| 96 | + INTER VARIABLE FONT |
97 | 97 | ================================================ */ |
98 | 98 |
|
99 | 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 | | -@font-face { |
110 | | - font-family: "Satoshi"; |
111 | | - src: |
112 | | - url("/fonts/Satoshi/Satoshi-Regular.woff2") format("woff2"), |
113 | | - url("/fonts/Satoshi/Satoshi-Regular.woff") format("woff"); |
114 | | - font-weight: 400; |
115 | | - font-style: normal; |
116 | | - font-display: swap; |
117 | | -} |
118 | | - |
119 | | -@font-face { |
120 | | - font-family: "Satoshi"; |
121 | | - src: |
122 | | - url("/fonts/Satoshi/Satoshi-Medium.woff2") format("woff2"), |
123 | | - url("/fonts/Satoshi/Satoshi-Medium.woff") format("woff"); |
124 | | - font-weight: 500; |
125 | | - font-style: normal; |
126 | | - font-display: swap; |
127 | | -} |
128 | | - |
129 | | -@font-face { |
130 | | - font-family: "Satoshi"; |
131 | | - src: |
132 | | - url("/fonts/Satoshi/Satoshi-Bold.woff2") format("woff2"), |
133 | | - url("/fonts/Satoshi/Satoshi-Bold.woff") format("woff"); |
134 | | - font-weight: 700; |
| 100 | + font-family: "Inter"; |
| 101 | + src: url("/fonts/Inter/InterVariable.woff2") format("woff2"); |
| 102 | + font-weight: 100 900; |
135 | 103 | font-style: normal; |
136 | 104 | font-display: swap; |
137 | 105 | } |
|
187 | 155 |
|
188 | 156 | /* Fonts */ |
189 | 157 | --vp-font-family-base: |
190 | | - "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, |
| 158 | + "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, |
191 | 159 | sans-serif; |
192 | 160 | --vp-font-family-mono: |
193 | 161 | "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, |
194 | 162 | "Liberation Mono", "Courier New", monospace; |
195 | 163 | } |
196 | 164 |
|
| 165 | +/* Font rendering optimizations */ |
| 166 | +body { |
| 167 | + -webkit-font-smoothing: antialiased; |
| 168 | + -moz-osx-font-smoothing: grayscale; |
| 169 | + text-rendering: optimizeLegibility; |
| 170 | + font-feature-settings: "cv01", "cv02", "zero"; |
| 171 | +} |
| 172 | + |
| 173 | +/* Typography tuning */ |
| 174 | +.vp-doc { |
| 175 | + line-height: 1.7; |
| 176 | + letter-spacing: -0.011em; |
| 177 | +} |
| 178 | + |
| 179 | +.vp-doc h1 { |
| 180 | + letter-spacing: -0.022em; |
| 181 | + line-height: 1.2; |
| 182 | +} |
| 183 | + |
| 184 | +.vp-doc h2 { |
| 185 | + letter-spacing: -0.017em; |
| 186 | + line-height: 1.3; |
| 187 | +} |
| 188 | + |
| 189 | +.vp-doc h3 { |
| 190 | + letter-spacing: -0.014em; |
| 191 | + line-height: 1.4; |
| 192 | +} |
| 193 | + |
197 | 194 | /* Dark mode */ |
198 | 195 | .dark { |
199 | 196 | --vp-c-bg: #0a0a0a; |
|
300 | 297 | font-weight: 700; |
301 | 298 | padding: 5px 12px; |
302 | 299 | border-radius: 6px; |
303 | | - font-family: ui-monospace, SFMono-Regular, monospace; |
| 300 | + font-family: var(--vp-font-family-mono); |
304 | 301 | text-transform: uppercase; |
305 | 302 | } |
306 | 303 |
|
|
347 | 344 | } |
348 | 345 |
|
349 | 346 | .api-endpoint-badge .path { |
350 | | - font-family: ui-monospace, SFMono-Regular, monospace; |
| 347 | + font-family: var(--vp-font-family-mono); |
351 | 348 | font-size: 14px; |
352 | 349 | color: #6b7280; |
353 | 350 | } |
|
0 commit comments