-
Notifications
You must be signed in to change notification settings - Fork 13
/
uno.config.ts
47 lines (45 loc) · 1.21 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
import { defineConfig, presetUno, presetIcons, presetAttributify, transformerDirectives } from 'unocss'
export default defineConfig({
presets: [
presetUno({
preflight: false
}),
presetAttributify(),
presetIcons({
collections: {
// heroicons:()=>import('@iconify-json/heroicons/icons.json').then(i=>i.default),
// mdi:()=>import('@iconify-json/mdi/icons.json').then(i=>i.default),
ri: () => import('@iconify-json/ri/icons.json').then(i => i.default),
},
scale: 1.5,
extraProperties: {
'display': 'inline-block',
'vertical-align': 'sub',
'cursor': 'pointer',
}
})
],
content: {
pipeline: {
include: [
// the default
///\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
// include js/ts files
//'src/**/*.{js,ts}',
// 'src/components/*.vue',
// 'src/pages/*.vue',
/\.vue($|\?)/,
'src/components/*',
// 'src/store/index.ts'
],
}
},
shortcuts: {
},
rules: [
['shadow', { 'box-shadow': 'var(--shadow)' }]
]
// transformers: [
// transformerDirectives(),
// ],
})