-
Notifications
You must be signed in to change notification settings - Fork 2
/
uno.config.ts
38 lines (37 loc) · 967 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
// uno.config.ts
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from "unocss";
export default defineConfig({
shortcuts: [
["flex-center", "flex justify-center items-center"],
["flex-end", "flex justify-end items-center"],
["flex-col-between", "flex flex-col justify-between"],
["op-hover", "cursor-pointer op60 hover:op100"],
["bg-hover", "cursor-pointer hover:bg-sky"],
[/flex-(\w+)-(\w+)/, ([_, h, v]) => `flex justify-${h} items-${v}`],
],
theme: {},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
extraProperties: {
display: "inline-block",
height: "1.2em",
width: "1.2em",
"vertical-align": "text-bottom",
},
}),
presetTypography(),
presetWebFonts(),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
});