-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunocss.config.ts
105 lines (104 loc) · 2.25 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
transformerDirectives
} from 'unocss'
export default defineConfig({
shortcuts: [{
'border-base': 'border border-level-fifth border-solid',
'flex-base': 'flex items-center',
'flex-center': 'flex-base justify-center',
'flex-between': 'flex-base justify-between',
'divider': 'border-t border-level-fifth my-sm'
}],
theme: {
colors: {
primary: {
50: '#eef5ff',
100: '#dae7ff',
200: '#bdd6ff',
300: '#90bdff',
400: '#4b8eff', // default
500: '#3572fc',
600: '#1f51f1',
700: '#173cde',
800: '#1932b4',
900: '#1a2fbe'
},
success: {
50: '#ecfdf4',
100: '#d1fae3',
200: '#a8f2cc',
300: '#6fe6b1',
400: '#2dc888', // default
500: '#11b879',
600: '#069562',
700: '#057752',
800: '#075e42',
900: '#074d38'
},
error: {
50: '#fef2f2',
100: '#fde3e3',
200: '#fdcbcb',
300: '#faa7a7',
400: '#f56c6c', // default
500: '#ec4747',
600: '#d92929',
700: '#b61f1f',
800: '#971d1d',
900: '#7d1f1f'
},
warning: {
50: '#fef9ec',
100: '#fdedc8',
200: '#fad98d',
300: '#f7c152',
400: '#f5a623', // default
500: '#ef8611',
600: '#d3640c',
700: '#af440e',
800: '#8f3511',
900: '#752c12'
},
level: {
first: '#262a30',
second: '#5c626b',
third: '#959ba3',
fourth: '#bfbfbf',
fifth: '#e1e1e1'
}
}
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
extraProperties: {
'display': 'inline-block',
'height': '1.2em',
'width': '1.2em',
'vertical-align': 'text-bottom'
}
}),
presetWebFonts({
fonts: {
sans: 'Inter:400,600,800',
mono: 'DM Mono:400,600',
condensed: 'Roboto Condensed',
wisper: 'Bad Script'
}
})
],
transformers: [
transformerDirectives()
],
safelist: [
'i-tabler-brand-vite',
'i-tabler-brand-docker',
'i-mdi-vuejs'
]
})