generated from vueuse/vueuse-vite-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
uno.config.ts
63 lines (61 loc) · 1.41 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// uno.config.ts
import { resolve } from 'node:path'
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
import { loadCustomIcon } from './scripts/load-custom-icon'
export default defineConfig({
// ...UnoCSS options
content: {
pipeline: {
include: [
'src/**/*.vue',
'src/**/*.tsx',
'src/**/*.ts',
'pages/**/*.md',
],
},
},
shortcuts: [
{
'bg-base': 'bg-white dark:bg-black',
'border-base': 'border-[#8884]',
},
[/^btn-(\w+)$/, ([_, color]) => `op50 px2.5 py1 transition-all duration-200 ease-out no-underline! hover:(op100 text-${color} bg-${color}/10) border border-base! rounded`],
],
presets: [
presetIcons({
collections: {
custom: {
moego: loadCustomIcon(resolve(__dirname, 'public/moego.svg')),
},
},
extraProperties: {
'display': 'inline-block',
'height': '1.2em',
'width': '1.2em',
'vertical-align': 'text-bottom',
},
}),
presetAttributify(),
presetUno(),
presetWebFonts({
fonts: {
sans: 'Inter:400,600,800',
mono: 'DM Mono:400,600',
condensed: 'Roboto Condensed',
wisper: 'Bad Script',
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})