generated from logustra/vivu-npm
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathunocss.config.ts
43 lines (38 loc) · 1 KB
/
unocss.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
import { defineConfig, presetAttributify, presetIcons, presetUno, presetWebFonts, transformerDirectives, transformerVariantGroup } from 'unocss'
const safelistMenuIcon = [
// 'i-ep:guide',
]
export function createConfig({ strict = true, dev = true } = {}) {
return defineConfig({
envMode: dev ? 'dev' : 'build',
theme: {
colors: {
},
},
shortcuts: [
],
presets: [
presetAttributify({ strict }),
presetIcons({
warn: true,
collections: {
// ep: () => import('@iconify-json/ep/icons.json').then(i => i.default as any),
// carbon: () => import('@iconify-json/carbon/icons.json').then(i => i.default as any),
},
}),
presetWebFonts({
provider: 'google',
fonts: {
sans: 'Roboto',
},
}),
presetUno(),
],
safelist: [...safelistMenuIcon],
transformers: [
transformerVariantGroup(),
transformerDirectives(),
],
})
}
export default createConfig()