Skip to content

Commit 790a3d6

Browse files
committed
fix: configure fonts properly, use geist, and move to preset wind4
1 parent 3306498 commit 790a3d6

7 files changed

Lines changed: 21 additions & 24 deletions

File tree

app/app.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ useHead({
1414
<div class="min-h-screen flex flex-col bg-bg text-fg">
1515
<a
1616
href="#main-content"
17-
class="skip-link"
17+
class="skip-link font-mono"
1818
>Skip to main content</a>
1919

2020
<header class="sticky top-0 z-50 bg-bg/80 backdrop-blur-md border-b border-border">
@@ -109,7 +109,6 @@ body {
109109
margin: 0;
110110
background-color: #0a0a0a;
111111
color: #fafafa;
112-
font-family: 'Inter', system-ui, -apple-system, sans-serif;
113112
line-height: 1.6;
114113
}
115114
@@ -179,7 +178,6 @@ button {
179178
padding: 0.5rem 1rem;
180179
background: #fafafa;
181180
color: #0a0a0a;
182-
font-family: 'JetBrains Mono', monospace;
183181
font-size: 0.875rem;
184182
z-index: 100;
185183
transition: top 0.2s ease;
@@ -208,7 +206,7 @@ button {
208206
.readme-content h5,
209207
.readme-content h6 {
210208
color: #fafafa;
211-
font-family: 'JetBrains Mono', monospace;
209+
@apply font-mono;
212210
font-weight: 500;
213211
margin-top: 2rem;
214212
margin-bottom: 1rem;
@@ -240,7 +238,7 @@ button {
240238
}
241239
242240
.readme-content code {
243-
font-family: 'JetBrains Mono', monospace;
241+
@apply font-mono;
244242
font-size: 0.875em;
245243
background: #1a1a1a;
246244
padding: 0.2em 0.4em;
@@ -267,7 +265,7 @@ button {
267265
background: transparent !important;
268266
border: none;
269267
padding: 0;
270-
font-family: 'JetBrains Mono', monospace;
268+
@apply font-mono;
271269
font-size: 0.875rem;
272270
color: #fafafa;
273271
/* Prevent code from forcing width */
@@ -310,7 +308,7 @@ button {
310308
311309
.readme-content blockquote[data-callout]::before {
312310
display: block;
313-
font-family: 'JetBrains Mono', monospace;
311+
@apply font-mono;
314312
font-size: 0.75rem;
315313
font-weight: 500;
316314
text-transform: uppercase;
@@ -427,7 +425,7 @@ button {
427425
/* Inline code in package descriptions */
428426
p > span > code,
429427
.line-clamp-2 code {
430-
font-family: 'JetBrains Mono', monospace;
428+
@apply font-mono;
431429
font-size: 0.85em;
432430
background: #1a1a1a;
433431
padding: 0.1em 0.3em;

app/components/OgImage/Default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
>
55
<h1
66
class="text-6xl font-medium tracking-tight"
7-
style="font-family: 'JetBrains Mono', monospace"
7+
style="font-family: 'JetBrains Mono'"
88
>
99
<span
1010
class="text-[#666666]"

app/components/OgImage/Package.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ withDefaults(defineProps<{
1313
<template>
1414
<div
1515
class="h-full w-full flex flex-col justify-center items-center bg-[#0a0a0a] text-[#fafafa]"
16-
style="font-family: 'JetBrains Mono', monospace"
16+
style="font-family: 'JetBrains Mono'"
1717
>
1818
<h1 class="text-6xl font-medium tracking-tight">
1919
{{ name }}

nuxt.config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ export default defineNuxtConfig({
4040
'/_v/session': { proxy: 'https://npmx.dev/_vercel/insights/session' },
4141
},
4242

43-
future: {
44-
compatibilityVersion: 4,
45-
},
46-
4743
experimental: {
4844
payloadExtraction: true,
4945
viewTransition: true,
@@ -75,7 +71,7 @@ export default defineNuxtConfig({
7571
fonts: {
7672
families: [
7773
{
78-
name: 'Inter',
74+
name: 'Geist',
7975
weights: ['400', '500', '600'],
8076
global: true,
8177
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@playwright/test": "1.57.0",
4848
"@types/sanitize-html": "^2.16.0",
4949
"@unocss/nuxt": "^66.6.0",
50+
"@unocss/preset-wind4": "^66.6.0",
5051
"@vite-pwa/assets-generator": "^1.0.2",
5152
"@vite-pwa/nuxt": "^1.1.0",
5253
"@vitest/browser-playwright": "^4.0.17",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

uno.config.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
import {
2-
defineConfig,
3-
presetIcons,
4-
presetUno,
5-
transformerDirectives,
6-
transformerVariantGroup,
7-
} from 'unocss'
1+
import { defineConfig, presetIcons, presetWind4, transformerDirectives, transformerVariantGroup } from 'unocss'
2+
import type { Theme } from '@unocss/preset-wind4/theme'
83

94
export default defineConfig({
105
presets: [
11-
presetUno(),
6+
presetWind4(),
127
presetIcons({
138
scale: 1.2,
149
}),
@@ -18,6 +13,10 @@ export default defineConfig({
1813
transformerVariantGroup(),
1914
],
2015
theme: {
16+
font: {
17+
mono: '\'JetBrains Mono\', monospace',
18+
sans: '\'Geist\', system-ui, -apple-system, sans-serif',
19+
},
2120
colors: {
2221
// Minimal black & white palette with subtle grays
2322
bg: {
@@ -71,7 +70,7 @@ export default defineConfig({
7170
'skeleton-pulse': 'infinite',
7271
},
7372
},
74-
},
73+
} satisfies Theme,
7574
shortcuts: [
7675
// Layout
7776
['container', 'max-w-4xl mx-auto px-4 sm:px-6'],

0 commit comments

Comments
 (0)