forked from ayangweb/BongoCat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuno.config.ts
More file actions
47 lines (46 loc) · 1.37 KB
/
uno.config.ts
File metadata and controls
47 lines (46 loc) · 1.37 KB
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,
presetIcons,
presetWind3,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
presets: [
presetWind3(),
presetIcons(),
],
transformers: [
transformerVariantGroup(),
transformerDirectives({
applyVariable: ['--uno'],
}),
],
shortcuts: [
[/^bg-color-(\d+)$/, ([, d]) => `bg-bg-${d}`],
[/^text-color-(\d+)$/, ([, d]) => `text-text-${d}`],
[/^b-color-(\d+)$/, ([, d]) => `b-border-${d}`],
[/^(.*)-primary-(\d+)$/, ([, s, d]) => `${s}-[var(--ant-blue-${d})]`],
],
theme: {
colors: {
'bg-1': 'var(--ant-color-bg-layout)',
'bg-2': 'var(--ant-color-bg-container)',
'bg-3': 'var(--ant-color-bg-elevated)',
'bg-4': 'var(--ant-color-bg-spotlight)',
'bg-5': 'var(--ant-color-fill)',
'bg-6': 'var(--ant-color-fill-secondary)',
'bg-7': 'var(--ant-color-fill-tertiary)',
'bg-8': 'var(--ant-color-fill-quaternary)',
'text-1': 'var(--ant-color-text)',
'text-2': 'var(--ant-color-text-secondary)',
'text-3': 'var(--ant-color-text-tertiary)',
'text-4': 'var(--ant-color-text-quaternary)',
'border-1': 'var(--ant-color-border)',
'border-2': 'var(--ant-color-border-secondary)',
'primary': 'var(--ant-blue)',
'success': 'var(--ant-green)',
'danger': 'var(--ant-red)',
},
},
})