forked from RabbyHub/Rabby
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.js
134 lines (133 loc) · 2.63 KB
/
tailwind.config.js
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
const colors = require('tailwindcss/colors');
module.exports = {
mode: 'jit',
purge: ['./src/ui/**/*.{ts,tsx,html}'],
theme: {
spacing: [
0,
1,
2,
4,
6,
8,
10,
12,
14,
16,
18,
20,
24,
28,
32,
40,
60,
80,
].reduce((m, n) => {
m[n] = `${n}px`;
return m;
}, {}),
screens: {
sm: { max: '600px' },
lg: { min: '600px' },
},
backgroundImage: {
refreshGradient: 'linear-gradient(180deg, #A8A29E 0%, #78716C 100%)',
buttonGradient: 'linear-gradient(180deg, #363636 0%, #292929 100%)',
mainButton: 'linear-gradient(180deg, #A8A29E 0%, #78716C 100%)',
mainButtonHover: 'linear-gradient(180deg, #CEC7C3 0%, #9B928C 100%)',
mainButtonActive: 'linear-gradient(180deg, #8D8884 0%, #524C48 100%)',
mainButtonDisabled: 'linear-gradient(180deg, #464240 0%, #373330 100%)',
},
colors: {
form: {
bg: '#101010',
},
label: {
bg: '#191919',
text: '#E7E6E4',
},
transparent: 'transparent',
current: 'currentColor',
main: {
light: '#666666',
DEFAULT: '#1E1E1E',
},
blue: {
from: '#8A78FD',
to: '#796BFD',
light: '#8697FF',
DEFAULT: '#796BFD',
purple: '#5F75FF',
},
black: '#707280',
green: '#27C193',
white: colors.white,
yellow: '#F29C1B',
orange: '#FFB020',
pink: '#F24822',
red: {
light: '#F24822',
DEFAULT: '#AF160E',
forbidden: '#EC5151',
},
gray: {
bg2: '#F5F6FA',
bg: '#F5F6FA',
divider: '#333333',
comment: '#B4BDCC',
content: '#ccc',
subTitle: '#7A7A7A',
title: '#fff',
light: '#707880',
common: '#666666',
},
mainButton: '#1B1A18',
},
boxShadow: {
default: '0px 1px 0px 0px rgba(0, 0, 0, 0.48)',
},
fontSize: {
12: [
'12px',
{
lineHeight: '14px',
},
],
13: '13px',
14: [
'14px',
{
lineHeight: '18px',
},
],
15: [
'15px',
{
lineHeight: '18px',
},
],
18: [
'18px',
{
lineHeight: '22px',
},
],
20: '20px',
24: [
'24px',
{
lineHeight: '28px',
},
],
28: [
'28px',
{
lineHeight: '33px',
},
],
},
},
// use media-query prefers-color-scheme
darkMode: 'media',
important: true,
};