-
Notifications
You must be signed in to change notification settings - Fork 1
/
uno.config.ts
102 lines (101 loc) · 2.92 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import {
defineConfig,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup
} from 'unocss'
export default defineConfig({
presets: [
presetUno(),
presetIcons({
autoInstall: true
}),
presetTypography(),
presetWebFonts({
provider: 'google',
fonts: {
anek: 'Anek Latin'
}
})
],
transformers: [transformerDirectives(), transformerVariantGroup()],
theme: {
colors: {
primary: 'var(--vp-c-text-1)',
muted: 'var(--vp-c-text-2)',
subtle: 'var(--vp-c-text-3)',
accent: 'var(--vp-c-brand-1)',
border: 'var(--vp-c-border)',
divider: 'var(--vp-c-divider)',
gutter: 'var(--vp-c-gutter)',
surface: {
DEFAULT: 'var(--vp-c-bg)',
alt: 'var(--vp-c-bg-alt)',
elv: 'var(--vp-c-bg-elv)',
soft: 'var(--vp-c-bg-soft)'
},
default: {
1: 'var(--vp-c-default-1)',
2: 'var(--vp-c-default-2)',
3: 'var(--vp-c-default-3)',
soft: 'var(--vp-c-default-soft)'
},
brand: {
1: 'var(--vp-c-brand-1)',
2: 'var(--vp-c-brand-2)',
3: 'var(--vp-c-brand-3)',
soft: 'var(--vp-c-brand-soft)'
},
button: {
brand: {
border: 'var(--vp-button-brand-border)',
text: 'var(--vp-button-brand-text)',
bg: 'var(--vp-button-brand-bg)',
hover: {
border: 'var(--vp-button-brand-hover-border)',
text: 'var(--vp-button-brand-hover-text)',
bg: 'var(--vp-button-brand-hover-bg)'
},
active: {
border: 'var(--vp-button-brand-active-border)',
text: 'var(--vp-button-brand-active-text)',
bg: 'var(--vp-button-brand-active-bg)'
}
},
alt: {
border: 'var(--vp-button-alt-border)',
text: 'var(--vp-button-alt-text)',
bg: 'var(--vp-button-alt-bg)',
hover: {
border: 'var(--vp-button-alt-hover-border)',
text: 'var(--vp-button-alt-hover-text)',
bg: 'var(--vp-button-alt-hover-bg)'
},
active: {
border: 'var(--vp-button-alt-active-border)',
text: 'var(--vp-button-alt-active-text)',
bg: 'var(--vp-button-alt-active-bg)'
}
},
sponsor: {
border: 'var(--vp-button-sponsor-border)',
text: 'var(--vp-button-sponsor-text)',
bg: 'var(--vp-button-sponsor-bg)',
hover: {
border: 'var(--vp-button-sponsor-hover-border)',
text: 'var(--vp-button-sponsor-hover-text)',
bg: 'var(--vp-button-sponsor-hover-bg)'
},
active: {
border: 'var(--vp-button-sponsor-active-border)',
text: 'var(--vp-button-sponsor-active-text)',
bg: 'var(--vp-button-sponsor-active-bg)'
}
}
}
}
}
})