-
Notifications
You must be signed in to change notification settings - Fork 3
/
unocss.config.ts
47 lines (46 loc) · 1.12 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: [
{
'border-main': 'border-gray-400 border-opacity-30',
'bg-main': 'bg-gray-400',
'bg-base': 'bg-white dark:bg-hex-1a1a1a',
'color-base': 'text-black dark:text-white',
'border-base': 'border-[#8884]',
},
[/^btn-(\w+)$/, ([_, color]) => `op50 px2.5 py1 transition-all duration-200 ease-out no-underline! hover:(op100 text-${color} bg-${color}/10) border border-base! rounded`],
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
}),
],
theme: {
colors: {
primary: '#3eaf7c',
},
fontFamily: {
mono: 'var(--vt-font-family-mono)',
},
},
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
rules: [
['bg-theme', { background: 'var(--vp-c-brand)' }],
[/^slide-enter-(\d+)$/, ([_, n]) => ({
'--enter-stage': n,
})],
],
})