forked from rotkonetworks/w3registrar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunocss.config.ts
50 lines (49 loc) · 959 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import {
defineConfig,
presetAttributify,
presetUno,
presetWebFonts,
presetWind,
transformerVariantGroup
} from 'unocss'
export default defineConfig({
presets: [
presetAttributify(),
presetUno(),
presetWind(),
presetWebFonts({
provider: 'none',
fonts: {
times: ['Times']
}
})
],
transformers: [
transformerVariantGroup()
],
theme: {
colors: {
primary: '#7eebff'
},
breakpoints: {
xs: '320px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
xxl: '1536px'
}
},
shortcuts: {
'pos-center': 'relative left-[50%] top-[50%] -translate-x-[50%] -translate-y-[50%]',
'btn-primary': 'bg-primary rounded mt-5 text-white py-1 px-4',
'flex-center': 'flex justify-center items-center'
},
rules: [
[/^min-h-(\d+)px$/, ([, h]) => {
return {
'min-height': `calc(100vh - ${h}px)`
}
}]
]
})