-
Notifications
You must be signed in to change notification settings - Fork 0
/
windi.config.ts
73 lines (71 loc) · 1.5 KB
/
windi.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
import { defineConfig } from 'windicss/helpers'
import typography from 'windicss/plugin/typography'
export default defineConfig({
darkMode: 'class',
// https://windicss.org/posts/v30.html#attributify-mode
attributify: true,
plugins: [
typography(),
],
theme: {
fontFamily: {
primary: [
'PingFang SC',
'Microsoft YaHei',
'Helvetica Neue',
'微软雅黑',
'Helvetica',
'Arial',
'Roboto',
'Segoe UI',
'sans-serif',
],
},
extend: {
colors: {
gray: {
1: '#272F3B',
2: '#70767F',
3: '#9DA1A7',
4: '#C4C7CB',
5: '#D9DCE0',
6: '#EAEDF0',
7: '#F0F2F6',
8: '#F6F8FA',
},
primary: {
DEFAULT: '#206EF7',
bg: '#E4EDFE',
hover: '#4A92FF',
normal: '#206EF7',
click: '#1151D1',
light: '#E4EDFE',
},
error: {
DEFAULT: '#F74439',
bg: '#FEE3E2',
hover: '#FF7063',
click: '#D12826',
},
success: {
DEFAULT: '#32BE48',
bg: '#E0F5E4',
hover: '#51DB78',
click: '#1BA84C',
},
warning: {
DEFAULT: '#F6A132',
bg: '#FDEEDA',
hover: '#FFC061',
click: '#CF7F23',
},
},
spacing: {
22: '5.5rem',
54: '13.5rem',
82: '20.5rem',
110: '27.5rem',
},
},
},
})