generated from kyewu/kz-vue-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
33 lines (32 loc) · 861 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetWind,
transformerDirectives,
transformerVariantGroup
} from 'unocss'
export default defineConfig({
rules: [['m-1', { margin: '0.25rem' }]],
shortcuts: {
'btn-green': 'text-white bg-green-500 hover:bg-green-700'
},
presets: [
presetWind(), // use tailwind css preset for UnoCSS,
presetAttributify(),
presetIcons({
// use icon preset for UnoCSS, install icon/json files manually
prefix: 'i-',
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle'
}
})
],
transformers: [
// <div class="hover:(bg-gray-400 font-medium) font-(light mono)"/>
// transfor to <div class="hover:bg-gray-400 hover:font-medium font-light font-mono"/>
transformerVariantGroup(),
transformerDirectives()
]
})