-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
107 lines (105 loc) · 2.24 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
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
103
104
105
106
107
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
const MyTheme = {
colors: {
green: {
DEFAULT: '#3BA676',
50: '#B4E4CF',
100: '#A5DFC5',
200: '#87D4B2',
300: '#69CA9E',
400: '#4BBF8B',
500: '#3BA676',
600: '#2C7D59',
700: '#1E533B',
800: '#0F2A1E',
900: '#000000',
},
blue: {
DEFAULT: '#0096FF',
50: '#B8E2FF',
100: '#A3D9FF',
200: '#7AC8FF',
300: '#52B8FF',
400: '#29A7FF',
500: '#0096FF',
600: '#0075C7',
700: '#00548F',
800: '#003357',
900: '#00121F',
},
red: {
DEFAULT: '#FF6464',
50: '#FFFFFF',
100: '#FFFFFF',
200: '#FFDEDE',
300: '#FFB6B6',
400: '#FF8D8D',
500: '#FF6464',
600: '#FF2C2C',
700: '#F30000',
800: '#BB0000',
900: '#830000',
},
slate: {
DEFAULT: '#64748b',
50: '#f8fafc',
100: '#f1f5f9',
200: '#e2e8f0',
300: '#cbd5e1',
400: '#94a3b8',
500: '#64748b',
600: '#475569',
700: '#334155',
800: '#1e293b',
900: '#0f172a',
},
},
}
export default defineConfig({
shortcuts: [
['btn', 'p-0 rounded inline-block bg-teal-600 text-white cursor-pointer hover:bg-teal-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
['icon-btn', 'inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100'],
['light-img', 'block dark:hidden'],
['dark-img', 'hidden dark:block'],
],
theme: {
maxWidth: {
'8xl': '90rem',
},
colors: {
primary: MyTheme.colors.green,
green: MyTheme.colors.green,
blue: MyTheme.colors.blue,
red: MyTheme.colors.red,
slate: MyTheme.colors.slate,
},
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
}),
presetTypography(),
presetWebFonts({
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})