-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuno.config.ts
More file actions
70 lines (66 loc) · 1.68 KB
/
uno.config.ts
File metadata and controls
70 lines (66 loc) · 1.68 KB
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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetWind3,
transformerDirectives,
transformerVariantGroup
} from 'unocss'
export default defineConfig({
presets: [
presetWind3(),
presetAttributify(),
presetIcons({
cdn: 'https://esm.sh/',
extraProperties: {
'display': 'inline-block',
'height': '1.2em',
'width': '1.2em',
'vertical-align': 'text-bottom'
}
}),
presetTypography()
],
transformers: [
transformerDirectives(),
transformerVariantGroup()
],
theme: {
breakpoints: {
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
'3xl': '1920px'
}
},
shortcuts: [
[/^clickable(-.*)?$/, ([, scale]) => `cursor-pointer transition active:scale${scale || '-95'}`],
['pr', 'relative'],
['pa', 'absolute'],
['pf', 'fixed'],
['ps', 'sticky'],
// position layout
['pxc', 'pa left-1/2 -translate-x-1/2'],
['pyc', 'pa top-1/2 -translate-y-1/2'],
['pcc', 'pxc pyc'],
// flex layout
['fcc', 'flex justify-center items-center'],
['fccc', 'fcc flex-col'],
['fxc', 'flex justify-center'],
['fyc', 'flex items-center'],
['fs', 'flex justify-start'],
['fsc', 'flex justify-start items-center'],
['fse', 'flex justify-start items-end'],
['fe', 'flex justify-end'],
['fec', 'flex justify-end items-center'],
['fb', 'flex justify-between'],
['fbc', 'flex justify-between items-center'],
['fa', 'flex justify-around'],
['fac', 'flex justify-around items-center'],
['fw', 'flex justify-wrap'],
['fwr', 'flex justify-wrap-reverse']
]
})