-
Notifications
You must be signed in to change notification settings - Fork 1
/
uno.config.ts
111 lines (98 loc) · 2.56 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import {
defineConfig,
presetIcons, presetTypography, presetUno,
transformerDirectives,
} from 'unocss'
export default defineConfig({
include: [/\.vue$/, /\.vue\?vue/, /\.[jt]sx?$/, /.html$/],
presets: [
presetUno({
dark: 'class',
}),
presetTypography(),
presetIcons({
scale: 1.2,
}),
],
transformers: [transformerDirectives()],
shortcuts: [
{
f: 'flex',
fc: 'flex flex-col',
fw: 'flex flex-wrap',
fa: 'flex-auto',
f1: 'flex-1',
fs0: 'flex-shrink-0',
fg0: 'flex-grow-0',
fn: 'flex-none',
js: 'justify-start',
jc: 'justify-center',
je: 'justify-end',
ja: 'justify-around',
jb: 'justify-between',
jv: 'justify-evenly',
jis: 'justify-items-start',
jic: 'justify-items-center',
jie: 'justify-items-end',
jit: 'justify-items-stretch',
jsa: 'justify-self-auto',
jss: 'justify-self-start',
jsc: 'justify-self-center',
jse: 'justify-self-end',
jst: 'justify-self-stretch',
is: 'items-start',
ic: 'items-center',
ie: 'items-end',
ib: 'items-baseline',
it: 'items-stretch',
ss: 'self-start',
sc: 'self-center',
se: 'self-end',
sa: 'self-auto',
st: 'self-stretch',
cs: 'content-start',
cc: 'content-center',
ce: 'content-end',
cb: 'content-between',
ca: 'content-around',
cv: 'content-evenly',
g: 'grid',
pcs: 'place-content-start',
pcc: 'place-content-center',
pce: 'place-content-end',
pct: 'place-content-stretch',
pcb: 'place-content-between',
pca: 'place-content-around',
pcv: 'place-content-evenly',
pis: 'place-items-start',
pic: 'place-items-center',
pie: 'place-items-end',
pit: 'place-items-stretch',
re: 'relative',
ab: 'absolute',
ab0: 'absolute inset-0',
},
[/^l-(.*)$/, ([, s]) => `left-${s}`, {}],
[/^r-(.*)$/, ([, s]) => `right-${s}`],
[/^t-(.*)$/, ([, s]) => `top-${s}`],
[/^b-(.*)$/, ([, s]) => `bottom-${s}`],
[/^rd-(.*)$/, ([, s]) => `rounded-${s}`],
[/^bd-(.*)$/, ([, s]) => `border-${s}`],
[/^ri-(.*)$/, ([, s]) => `ring-${s}`],
[/^tx-(.*)$/, ([, s]) => `text-${s}`],
[/^dv-(.*)$/, ([, s]) => `divide-${s}`],
[/^sd-(.*)$/, ([, s]) => `shadow-${s}`],
],
theme: {
breakpoints: {
'sm': '576px',
'md': '720px',
'lg': '992px',
'xl': '1200px',
'2xl': '1400px',
'3xl': '1540px',
'4xl': '1860px',
'5xl': '2480px',
},
},
})