-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
33 lines (30 loc) · 914 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
import presetWeapp from 'unocss-preset-weapp'
import { defineConfig } from 'unocss'
import {
extractorAttributify,
transformerClass
} from 'unocss-preset-weapp/transformer'
import { presetIcons } from 'unocss'
const { presetWeappAttributify, transformerAttributify } =
extractorAttributify()
export default defineConfig({
presets: [
// https://github.com/MellowCo/unocss-preset-weapp
presetWeapp(),
// attributify autocomplete
presetWeappAttributify(),
presetIcons()
],
shortcuts: [
{
'border-base': 'border border-gray-500_10',
center: 'flex justify-center items-center'
}
],
transformers: [
// https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify
transformerAttributify(),
// https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass
transformerClass()
]
})