generated from antfu-collective/vitesse
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuno.config.ts
38 lines (37 loc) · 960 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
36
37
38
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: {
'full': 'w-full h-full',
'flex-col': 'flex flex-col',
'flex-items': 'flex items-center',
'flex-b-c': 'flex justify-between items-center',
'flex-center': 'flex justify-center items-center',
'flex-center-r': 'flex justify-end items-center',
'flex-col-center': 'flex flex-col justify-center items-center',
'turn-dark': 'invert-100 hue-rotate-180',
'text-primary': 'text-$el-color-primary',
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
cdn: 'https://esm.sh/',
}),
presetTypography(),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
safelist: 'prose m-auto text-left query-target'.split(' '),
})