forked from kuizuo/chaoxing-sign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
61 lines (60 loc) · 1.24 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: [],
theme: {
colors: {
primary: '#e70012',
},
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
}),
presetTypography({
cssExtend: {
'h2': {
'padding-bottom': '.3em',
'border-bottom': '1px solid #d8dee4',
},
'h2 > a, h3 > a, h4 > a': {
'text-decoration': 'none',
'border-bottom': '0',
},
'h2 > a:hover, h3 > a:hover, h4 > a:hover': {
'color': 'inherit !important',
'border-bottom': '0 !important',
},
'a': {
'text-decoration': 'none',
'border-bottom': '1px dashed',
},
'a:hover': {
'color': '#f43f5e',
'border-bottom': '1px solid #f43f5e',
},
},
}),
presetWebFonts({
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})