Skip to content

Commit c075b45

Browse files
committed
feat: ship unocss fonts
1 parent ac2d73a commit c075b45

File tree

5 files changed

+32
-22
lines changed

5 files changed

+32
-22
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist
55
.nuxt
66
.env
77
.idea/
8+
public/assets/fonts

Diff for: app/pages/index.vue

+11-6
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,24 @@ const online = useOnline()
99
<template>
1010
<div>
1111
<Logos mb-6 />
12-
<Suspense>
13-
<ClientOnly>
12+
<ClientOnly>
13+
<Suspense>
1414
<PageView v-if="online" />
1515
<div v-else text-gray:80>
1616
You're offline
1717
</div>
18-
</ClientOnly>
18+
<template #fallback>
19+
<div italic op50>
20+
<span animate-pulse>Loading...</span>
21+
</div>
22+
</template>
23+
</Suspense>
1924
<template #fallback>
20-
<div italic op50>
21-
<span animate-pulse>Loading...</span>
25+
<div op50>
26+
<span animate-pulse>...</span>
2227
</div>
2328
</template>
24-
</Suspense>
29+
</ClientOnly>
2530
<InputEntry />
2631
</div>
2732
</template>

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"vue-tsc": "^2.1.10"
3535
},
3636
"resolutions": {
37+
"unplugin": "2.0.0-beta.1",
3738
"vite": "^6.0.1",
3839
"vite-plugin-inspect": "^0.10.1"
3940
}

Diff for: pnpm-lock.yaml

+17-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: uno.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { createLocalFontProcessor } from '@unocss/preset-web-fonts/local'
12
import {
23
defineConfig,
34
presetAttributify,
@@ -27,6 +28,7 @@ export default defineConfig({
2728
serif: 'DM Serif Display',
2829
mono: 'DM Mono',
2930
},
31+
processors: createLocalFontProcessor(),
3032
}),
3133
],
3234
transformers: [

0 commit comments

Comments
 (0)