-
Notifications
You must be signed in to change notification settings - Fork 16
/
unocss.config.ts
47 lines (46 loc) · 1.06 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
import {
defineConfig,
presetAttributify,
presetUno,
transformerCompileClass,
transformerDirectives,
transformerVariantGroup
} from 'unocss'
export default defineConfig({
presets: [presetUno(), presetAttributify()],
transformers: [
transformerCompileClass(),
transformerVariantGroup(),
transformerDirectives()
],
theme: {
colors: {
primary: 'var(--el-color-primary)',
success: 'var(--el-color-success)',
warning: 'var(--el-color-warning)',
danger: 'var(--el-color-danger)'
}
},
shortcuts: [
{
ellipsis: 'truncate',
hover: 'cursor-pointer op100 hover:op70 transition-all',
divider: 'border-b border-base',
'flex-col': 'flex flex-col',
'border-base': 'border-gray-500:10',
'flex-center': 'flex justify-center items-center'
}
],
rules: [
['shadow', { 'box-shadow': '0px 2px 12px 0 rgba(0, 0, 0, .1)' }],
[
'p-c',
{
position: 'absolute',
top: '50%',
left: '50%',
transform: `translate(-50%, -50%)`
}
]
]
})