-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunocss.config.ts
32 lines (28 loc) · 1.12 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
import presetWeapp from "unocss-preset-weapp";
import { extractorAttributify, transformerClass } from "unocss-preset-weapp/transformer";
const { presetWeappAttributify, transformerAttributify } = extractorAttributify();
export default {
presets: [
// https://github.com/MellowCo/unocss-preset-weapp
presetWeapp(),
// attributify autocomplete
presetWeappAttributify(),
],
shortcuts: [
{
"flex-center": "flex justify-center items-center flex-wrap",
"flex-start": "flex justify-start items-center",
"flex-end": "flex justify-end items-center",
"flex-col-center": "flex flex-col justify-center items-center",
"flex-between": "flex justify-between items-center",
"fixed-bottom": "fixed bottom-0 left-0 right-0",
"absolute-center": "absolute inset-0 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(),
],
};