-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
126 lines (120 loc) · 3.21 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
// See https://tailwindcss.com/docs/configuration for details
module.exports = {
purge: {
content: ['./src/**/*.js'],
options: {
whitelist: [
// Colors chosen by content options for buttons
'bg-red-200',
'bg-orange-200',
'bg-yellow-200',
'bg-green-200',
'bg-teal-200',
'bg-blue-200',
'bg-indigo-200',
'bg-purple-200',
'bg-pink-200',
],
}
},
theme: {
extend: {
colors: {
gray: {
'100': 'hsl(192, 15%,97%)',
'200': 'hsl(198, 16%, 95%)',
'300': 'hsl(202, 15%, 91%)',
'400': 'hsl(199, 14%, 84%)',
'500': 'hsl(202, 13%, 69%)',
'600': 'hsl(204, 12%, 52%)',
'700': 'hsl(206, 14%, 35%)',
'800': 'hsl(206, 20%, 23%)',
'900': 'hsl(208, 25%, 14%)',
}
},
width: {
'78': '19.5rem',
},
minHeight: {
'28': '7rem',
},
padding: {
'1/3': '33.3333%',
},
boxShadow: theme => ({
'md': '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.1)',
'lg': '0 2px 6px 0 hsla(0, 0%, 0%, .2)',
'inner': 'inset 0 0 4px 0 rgba(0, 0, 0, 0.09)',
'focus': `0 0 0 4px ${theme('colors.blue.400')}`,
'error': `0 0 0 4px ${theme('colors.red.500')}`,
'never': 'none !important',
}),
zIndex: {
'behind': '-1',
},
keyframes: {
shakeX: {
'from, to': {
transform: 'translate3d(0, 0, 0)' },
'10%, 40%, 60%, 90%': {
transform: 'translate3d(-5px, 0, 0)' },
'20%, 50%, 80%': {
transform: 'translate3d(5px, 0, 0)' },
},
bounce: {
'0%, 100%': {
transform: 'none',
animationTimingFunction: 'cubic-bezier(0,0,0.2,1)',
},
'50%': {
transform: 'translateY(-25%)',
animationTimingFunction: 'cubic-bezier(0.8,0,1,1)',
},
},
fadeOutUp: {
'from': {
opacity: '1',
transform: 'translate3d(-50%, 0, 0)',
},
'to': {
opacity: '0',
transform: 'translate3d(-50%, -100%, 0)',
},
},
},
animation: {
'shakeX': 'shakeX .5s linear 1',
'fadeOutUp': 'fadeOutUp 1.5s ease-out 1 forwards',
},
screens: {
'max-xsm': {'max': '359px'},
},
},
customForms: theme => ({
default: {
input: {
'&:focus': {
boxShadow: theme('boxShadow.focus'),
borderColor: undefined,
},
},
textarea: {
'&:focus': {
boxShadow: theme('boxShadow.focus'),
borderColor: undefined,
},
},
}
}),
},
variants: {
animation: ['responsive', 'hover', 'focus'],
backgroundColor: ['responsive', 'hover', 'focus', 'disabled'],
padding: ['responsive', 'odd'],
margin: ['responsive', 'even'],
alignSelf: ['responsive', 'even'],
},
// https://github.com/tailwindcss/custom-forms
plugins: [require("@tailwindcss/custom-forms")],
future: { removeDeprecatedGapUtilities: true },
};