-
Notifications
You must be signed in to change notification settings - Fork 3
/
uno.config.ts
69 lines (68 loc) · 1.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
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
presetWind,
} from 'unocss'
export default defineConfig({
shortcuts: {
'bg-body': 'bg-#FFFFFF dark:bg-dark',
'hw-full': 'h-full w-full',
'hw-screen': 'h-screen w-screen',
'flex-center': 'flex justify-center items-center',
'flex-x-center': 'flex justify-center',
'flex-y-center': 'flex items-center',
'flex-col-center': 'flex-col flex-center',
'icon-btn': 'op30 hover:op100 hover:bg-primary_hover',
'base-border': 'border-[#E5E6EB] dark:border-[#484849]',
},
presets: [
presetAttributify(),
presetUno(),
presetIcons({
scale: 1.2,
}),
presetWind(),
presetWebFonts({
fonts: {
sans: 'Inter',
mono: 'DM Mono',
},
}),
],
theme: {
breakpoints: {
xs: '320px',
sm: '640px',
md: '1024px',
lg: '1280px',
xl: '1536px',
xxl: '1920px',
},
colors: {
primary: 'var(--primary-color)',
primary_hover: 'var(--primary-color-hover)',
primary_pressed: 'var(--primary-color-pressed)',
primary_suppl: 'var(--primary-color-suppl)',
info: 'var(--info-color)',
info_hover: 'var(--info-color-hover)',
info_pressed: 'var(--info-color-pressed)',
info_suppl: 'var(--info-color-suppl)',
success: 'var(--success-color)',
success_hover: 'var(--success-color-hover)',
success_pressed: 'var(--success-color-pressed)',
success_suppl: 'var(--success-color-suppl)',
warning: 'var(--warning-color)',
warning_hover: 'var(--warning-color-hover)',
warning_pressed: 'var(--warning-color-pressed)',
warning_suppl: 'var(--warning-color-suppl)',
error: 'var(--error-color)',
error_hover: 'var(--error-color-hover)',
error_pressed: 'var(--error-color-pressed)',
error_suppl: 'var(--error-color-suppl)',
dark: '#18181C',
},
},
})