-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
unocss.config.ts
36 lines (35 loc) · 873 Bytes
/
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
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
transformerDirectives,
} from 'unocss'
export default defineConfig({
shortcuts: {
'border-base': 'border-$c-border',
'border-bg-base': 'border-$c-bg-base',
'bg-base': 'bg-$c-bg-base',
'text-base': 'text-$c-text-base',
'flex-center': 'items-center justify-center',
'flex-x-center': 'justify-center',
'flex-y-center': 'items-center',
'nav-button':
'flex flex-center rounded-md p1.5 hover:bg-gray hover:bg-opacity-20',
},
presets: [
presetUno({
attributifyPseudo: true,
}),
presetAttributify(),
presetIcons({
scale: 1.2,
extraProperties: {
color: 'inherit',
// Avoid crushing of icons in crowded situations
'min-width': '1.2em',
},
}),
],
transformers: [transformerDirectives()],
})