-
Notifications
You must be signed in to change notification settings - Fork 14
/
uno.config.ts
48 lines (47 loc) · 954 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
39
40
41
42
43
44
45
46
47
48
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
transformerAttributifyJsx,
transformerDirectives
} from 'unocss'
export default defineConfig({
presets: [
presetUno(),
presetAttributify(),
presetIcons()
],
transformers: [
transformerDirectives(),
transformerAttributifyJsx()
],
theme: {
breakpoints: {
sm: '600px'
},
colors: {
primary: '#3c40c6',
success: 'rgba(82, 196, 26, %alpha)',
warning: 'rgba(250, 173, 20, %alpha)',
danger: 'rgba(250, 85, 85, %alpha)',
info: 'rgba(144, 147, 153, %alpha)'
}
},
rules: [
[
'navbar-shadow', {
'box-shadow': '0 1px 4px rgb(0 21 41 / 8%)'
}
],
[
/^bgimage-(\w+)-(.+)-(svg|png|jpg|gif)$/,
([, dir, fname, fext]) => {
return {
'background-image': `url(@/assets/${ dir }/${ fname }.${ fext })`
}
}
]
],
shortcuts: {}
})