|
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, sans-serif; |
| 158 | + "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; |
191 | 159 | --vp-font-family-mono: |
192 | 160 | "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", |
193 | 161 | monospace; |
194 | 162 | } |
195 | 163 |
|
| 164 | +/* Font rendering optimizations */ |
| 165 | +body { |
| 166 | + -webkit-font-smoothing: antialiased; |
| 167 | + -moz-osx-font-smoothing: grayscale; |
| 168 | + text-rendering: optimizeLegibility; |
| 169 | + font-feature-settings: |
| 170 | + "cv01" on, |
| 171 | + "cv02" on, |
| 172 | + "zero" on; |
| 173 | +} |
| 174 | + |
| 175 | +/* Typography tuning for Inter readability */ |
| 176 | +.vp-doc { |
| 177 | + line-height: 1.7; |
| 178 | + letter-spacing: -0.011em; |
| 179 | +} |
| 180 | + |
| 181 | +.vp-doc h1 { |
| 182 | + letter-spacing: -0.022em; |
| 183 | + line-height: 1.2; |
| 184 | +} |
| 185 | + |
| 186 | +.vp-doc h2 { |
| 187 | + letter-spacing: -0.017em; |
| 188 | + line-height: 1.3; |
| 189 | +} |
| 190 | + |
| 191 | +.vp-doc h3 { |
| 192 | + letter-spacing: -0.014em; |
| 193 | + line-height: 1.4; |
| 194 | +} |
| 195 | + |
196 | 196 | /* Dark mode */ |
197 | 197 | .dark { |
198 | 198 | --vp-c-bg: #0a0a0a; |
|
299 | 299 | font-weight: 700; |
300 | 300 | padding: 5px 12px; |
301 | 301 | border-radius: 6px; |
302 | | - font-family: ui-monospace, SFMono-Regular, monospace; |
| 302 | + font-family: var(--vp-font-family-mono); |
303 | 303 | text-transform: uppercase; |
304 | 304 | } |
305 | 305 |
|
|
346 | 346 | } |
347 | 347 |
|
348 | 348 | .api-endpoint-badge .path { |
349 | | - font-family: ui-monospace, SFMono-Regular, monospace; |
| 349 | + font-family: var(--vp-font-family-mono); |
350 | 350 | font-size: 14px; |
351 | 351 | color: #6b7280; |
352 | 352 | } |
|
0 commit comments