-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
35 lines (32 loc) · 963 Bytes
/
uno.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// uno.config.ts
import { defineConfig, presetUno, presetIcons } from "unocss";
import presetWebFonts from '@unocss/preset-web-fonts'
import { createLocalFontProcessor } from "@unocss/preset-web-fonts/local";
export default defineConfig({
rules: [],
presets: [
// https://icones.js.org/collection/hugeicons
presetIcons({
extraProperties: {
"vertical-align": "middle",
},
}),
presetUno(),
presetWebFonts({
provider: "bunny",
fonts: {
sans: "Poppins:200,300,400,500,600",
// title: 'Bungee Inline',
title: "Monoton",
},
processors: createLocalFontProcessor({
// Directory to cache the fonts
cacheDir: "node_modules/.cache/unocss/fonts",
// Directory to save the fonts assets
fontAssetsDir: "public/assets/fonts",
// Base URL to serve the fonts from the client
fontServeBaseUrl: "/assets/fonts",
}),
}),
],
});