-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
71 lines (70 loc) · 2.31 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
import { presetExtra } from 'unocss-preset-extra'
export default defineConfig({
presets: [
presetUno,
presetAttributify(),
presetIcons({
extraProperties: {
cursor: 'pointer',
},
prefix: 'icon-',
warn: true,
}),
presetExtra() as any,
presetWebFonts({
fonts: {
mono: 'DM Mono',
sans: 'DM Sans',
serif: 'DM Serif Display',
},
}),
],
shortcuts: {
'flex-center': 'flex justify-center items-center',
'red': 'border-red-500 border-solid border',
},
theme: {
colors: {
dark: '#18181c',
error: 'rgba(var(--error-color))',
error_active: 'rgba(var(--error-color-active),0.1)',
error_hover: 'rgba(var(--error-color-hover))',
error_pressed: 'rgba(var(--error-color-pressed))',
info: 'rgba(var(--info-color))',
info_active: 'rgba(var(--info-color-active),0.1)',
info_hover: 'rgba(var(--info-color-hover))',
info_pressed: 'rgba(var(--info-color-pressed))',
primary: 'rgba(var(--primary-color))',
primary_1: 'rgba(var(--primary-color1))',
primary_2: 'rgba(var(--primary-color2))',
primary_3: 'rgba(var(--primary-color3))',
primary_4: 'rgba(var(--primary-color4))',
primary_5: 'rgba(var(--primary-color5))',
primary_6: 'rgba(var(--primary-color6))',
primary_7: 'rgba(var(--primary-color7))',
primary_8: 'rgba(var(--primary-color8))',
primary_9: 'rgba(var(--primary-color9))',
primary_active: 'rgba(var(--primary-color-active),0.1)',
primary_hover: 'rgba(var(--primary-color-hover))',
primary_pressed: 'rgba(var(--primary-color-pressed))',
success: 'rgba(var(--success-color))',
success_active: 'rgba(var(--success-color-active),0.1)',
success_hover: 'rgba(var(--success-color-hover))',
success_pressed: 'rgba(var(--success-color-pressed))',
warning: 'rgba(var(--warning-color))',
warning_active: 'rgba(var(--warning-color-active),0.1)',
warning_hover: 'rgba(var(--warning-color-hover))',
warning_pressed: 'rgba(var(--warning-color-pressed))',
},
},
transformers: [transformerDirectives(), transformerVariantGroup()],
})