-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
73 lines (68 loc) · 1.88 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { defineConfig } from 'unocss'
import {
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
presetMini,
transformerDirectives,
transformerVariantGroup,
} from 'unocss';
import presetWind from '@unocss/preset-wind';
export default defineConfig({
theme: {
dark: {
color: {
main: '#fff',
},
},
light: {
color: {
main: '#f1f1f1',
},
},
},
presets: [
presetMini({
dark: {
dark: 'body.body--dark',
light: 'body.body--light',
},
}),
presetWind(),
presetAttributify({
prefix: 'vv-',
prefixedOnly: true,
}),
presetUno(),
presetIcons({
scale: 1.2,
warn: true,
collections: {
carbon: () =>
import('@iconify-json/carbon/icons.json').then(
(i) => i.default,
),
mdi: () =>
import('@iconify-json/mdi/icons.json').then(
(i) => i.default,
),
logos: (): any =>
import('@iconify-json/logos/icons.json').then(
(i) => i.default,
),
ion: () =>
import('@iconify-json/ion/icons.json').then(
(i) => i.default,
),
si: (): any =>
import('@iconify-json/simple-icons/icons.json').then(
(i) => i.default,
),
},
}),
presetWebFonts(),
], // Presets
transformers: [transformerDirectives(), transformerVariantGroup()],
safelist: 'prose prose-sm m-auto text-left'.split(' '),
})