-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunocss.config.ts
65 lines (64 loc) · 1.2 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
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
import {
defineConfig,
presetUno,
presetAttributify,
presetIcons,
presetWebFonts,
transformerVariantGroup,
transformerDirectives
} from 'unocss'
export default defineConfig({
rules: [
[/^slide-enter-(\d+)$/, ([_, n]) => ({
'--enter-stage': n
})]
],
theme: {
maxWidth: {
main: '750px'
},
height: {
header: '64px',
footer: '50px'
}
},
presets: [
presetUno(),
presetAttributify(),
presetWebFonts({
fonts: {
sans: 'Inter:400,600,800',
mono: 'DM Mono:400,600'
}
}),
presetIcons({
warn: true,
extraProperties: {
'width': '1.23rem',
'height': '1.23rem',
'display': 'inline-block',
'vertical-align': 'text-bottom'
}
})
],
transformers: [
transformerVariantGroup(),
transformerDirectives()
],
blocklist: ['me'],
safelist: [
'i-ri-sun-line',
'i-ri-moon-line',
'i-ri-github-line',
'i-ri-discord-line',
'i-ri-facebook-line',
'i-ri-instagram-line',
'i-ri-linkedin-line',
'i-ri-mastodon-line',
'i-ri-slack-line',
'i-ri-twitter-line',
'i-ri-youtube-line',
'i-ri-zhihu-line',
'i-ri-bilibili-line'
]
})