-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
70 lines (69 loc) · 2.03 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: [
{
'bg-main': 'bg-hex-eef5fc dark:bg-hex-0d1117',
'text-main': 'text-hex-555555 dark:text-hex-bbbbbb',
'text-link': 'text-dark dark:text-white ',
'border-main': 'border-truegray-300 dark:border-truegray-600',
},
{
'text-title': 'text-link text-4xl font-800',
'nav-link':
'text-link opacity-70 hover:opacity-100 transition-opacity duration-200 cursor-pointer',
'prose-link':
'text-link text-nowrap cursor-pointer border-b-1 !border-opacity-30 hover:!border-opacity-100 border-neutral-500 hover:border-truegray-600 dark:border-neutral-500 hover:dark:border-truegray-400 transition-border-color duration-200 decoration-none',
'container-link':
'p-2 opacity-60 hover:opacity-100 cursor-pointer hover:bg-truegray-500 !bg-opacity-10 transition-colors transition-opacity duration-200',
},
{
'hr-line':
'w-14 mx-auto my-8 border-solid border-1px !border-truegray-200 !dark:border-truegray-800',
},
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
prefix: 'i-',
extraProperties: {
display: 'inline-block',
},
}),
presetTypography(),
presetWebFonts({
fonts: {
sans: 'Inter:400,600,800',
mono: 'DM Mono:400,600',
},
}),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
safelist: [
'i-ri-file-list-2-line',
'i-carbon-campsite',
'i-simple-icons-github',
'i-simple-icons-x',
'i-simple-icons-threads',
'i-simple-icons-linkedin',
'i-simple-icons-instagram',
'i-simple-icons-youtube',
'i-simple-icons-bilibili',
'i-simple-icons-zhihu',
'i-simple-icons-sinaweibo',
'i-ri-github-line',
'i-ri-twitter-x-line',
'i-ri-instagram-line',
'i-ri-threads-line',
],
})