Commit 7402804
authored
🤖 feat: add Geist font for Windows/Linux (#580)
This PR updates the font configuration to use San Francisco on macOS and
Geist on Windows/Linux.
## Changes
- Installed `geist` package and bundled Geist Sans and Geist Mono
variable fonts
- Added @font-face declarations for both fonts in `globals.css`
- Updated `--font-primary` to prefer `-apple-system` (San Francisco)
first, then fall back to `Geist`
- Updated `--font-monospace` to prefer macOS system monospace fonts,
then `Geist Mono`
## Implementation
The font-family stack now works as follows:
- **macOS**: Uses `-apple-system` (San Francisco) for UI and
`Monaco`/`Menlo` for monospace
- **Windows/Linux**: Falls through to `Geist` for UI and `Geist Mono`
for monospace
Font files are bundled in `public/fonts/` and loaded with `font-display:
swap` for better performance.
_Generated with `mux`_1 parent 005e43a commit 7402804
File tree
8 files changed
+133
-7
lines changed- public/fonts
- geist-mono
- geist-sans
- scripts
- src/styles
8 files changed
+133
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
4 | 21 | | |
5 | 22 | | |
6 | 23 | | |
| |||
205 | 222 | | |
206 | 223 | | |
207 | 224 | | |
208 | | - | |
| 225 | + | |
209 | 226 | | |
210 | | - | |
211 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
212 | 230 | | |
213 | | - | |
| 231 | + | |
214 | 232 | | |
215 | | - | |
216 | | - | |
| 233 | + | |
| 234 | + | |
217 | 235 | | |
218 | 236 | | |
219 | 237 | | |
| |||
0 commit comments