-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
114 lines (108 loc) · 2.71 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
const base = {
'8': '2rem',
'12': '3rem',
'16': '4rem',
'24': '6rem',
'32': '8rem',
'40': '10rem',
'48': '12rem',
'56': '14rem',
'64': '16rem',
}
const extra = {
'72': '18rem',
'80': '20rem',
'88': '22rem',
'96': '24rem',
'104': '26rem',
'112': '28rem',
'120': '30rem',
'128': '32rem',
'136': '34rem',
'144': '36rem',
'152': '38rem',
'160': '40rem',
}
const percent = {
'1/2': '50%',
'1/3': '33.33%',
'2/3': '66.66%',
'1/4': '25%',
'3/4': '75%',
'1/5': '20%',
'2/5': '40%',
'3/5': '60%',
'4/5': '80%',
}
module.exports = {
purge: [
'./src/components/*.js',
'./src/pages/*.js',
'./src/templates/*.js',
],
theme: {
extend: {
inset: Object.assign({
}, percent),
spacing: Object.assign({
'260px': '260px',
'600px': '600px',
}, base, extra),
width: Object.assign({
'1320px': '1320px',
}, extra, percent),
height: Object.assign({
'100vh': '100vh',
}, extra, percent),
minWidth: Object.assign({
}, base, extra, percent),
minHeight: Object.assign({
'480px': '480px',
'640px': '640px',
}, base, extra, percent),
maxWidth: Object.assign({
}, base, extra, percent),
maxHeight: Object.assign({
'50vh': '50vh',
}, base, extra, percent),
borderRadius: {
'xl': '0.75rem',
'2xl': '1rem',
},
backgroundColor: {
'black-10': 'rgba(0,0,0, 0.01)',
'black-20': 'rgba(0,0,0, 0.02)',
'black-30': 'rgba(0,0,0, 0.03)',
'black-40': 'rgba(0,0,0, 0.04)',
'black-50': 'rgba(0,0,0, 0.05)',
'black-60': 'rgba(0,0,0, 0.06)',
'black-70': 'rgba(0,0,0, 0.07)',
'black-80': 'rgba(0,0,0, 0.08)',
'black-90': 'rgba(0,0,0, 0.09)',
'black-100': 'rgba(0,0,0, 0.1)',
'black-200': 'rgba(0,0,0, 0.2)',
'black-300': 'rgba(0,0,0, 0.3)',
'black-400': 'rgba(0,0,0, 0.4)',
'black-500': 'rgba(0,0,0, 0.5)',
'black-600': 'rgba(0,0,0, 0.6)',
'black-700': 'rgba(0,0,0, 0.7)',
'black-800': 'rgba(0,0,0, 0.8)',
'black-900': 'rgba(0,0,0, 0.9)',
'white-100': 'rgba(255,255,255, 0.1)',
'white-200': 'rgba(255,255,255, 0.2)',
'white-300': 'rgba(255,255,255, 0.3)',
'white-400': 'rgba(255,255,255, 0.4)',
'white-500': 'rgba(255,255,255, 0.5)',
'white-600': 'rgba(255,255,255, 0.6)',
'white-700': 'rgba(255,255,255, 0.7)',
'white-800': 'rgba(255,255,255, 0.8)',
'white-900': 'rgba(255,255,255, 0.9)',
'white-980': 'rgba(255,255,255, 0.98)',
},
},
},
variants: {
backgroundColor: ['hover', 'active'],
},
plugins: [],
}