-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
208 lines (207 loc) · 5.47 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
const hideScrollbarPlugin = require('tailwind-scrollbar-hide')
const defaultTheme = require('tailwindcss/defaultTheme')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/{components,constants,libs,pages}/**/*.{ts,tsx}', './src/styles/**/*.css'],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
data: {
open: 'state="open"',
cancel: 'state="cancel"',
closed: 'state="closed"',
},
plugins: [hideScrollbarPlugin],
// We cannot extend the default theme to add a smaller breakpoint as they need to be sorted from smallest to largest
// in order to work as expected with a min-width breakpoint system, but the automatic sorting introduced in Tailwind
// v3.2 only works if all screens are min-width-based.
// https://github.com/tailwindlabs/tailwindcss/pull/9558#issue-1409676649
screens: {
xs: '481px',
...defaultTheme.screens,
},
extend: {
animation: {
'bounce-in': 'bounceIn 300ms cubic-bezier(0.55, 1.15, 0.35, 1.15)',
'bounce-out': 'bounceOut 250ms cubic-bezier(0.55, 1.15, 0.35, 1.15)',
dash: 'dash 1.5s ease-in-out infinite',
'drop-in': 'dropIn 250ms ease-out',
'drop-out': 'dropOut 200ms ease-in',
'fade-in': 'fadeIn 200ms ease-out',
'fade-out': 'fadeOut 200ms ease-in',
'spin-slow': 'spin 2s linear infinite',
'scale-in': 'scaleIn 250ms ease-out',
'scale-out': 'scaleOut 150ms ease-in',
'slide-in': 'slideIn 250ms ease-out',
'slide-out': 'slideOut 200ms ease-in',
'swipe-in-left': 'swipeInLeft 250ms ease-out',
'swipe-out-left': 'swipeOutLeft 200ms ease-in',
'swipe-in-right': 'swipeInRight 250ms ease-out',
'swipe-out-right': 'swipeOutRight 200ms ease-in',
},
backgroundImage: {
checkboard: "repeating-conic-gradient(theme('colors.zinc.600') 0% 25%, theme('colors.zinc.400') 0% 50%)",
},
backgroundSize: {
checkboard: "theme('spacing.6') theme('spacing.6')",
},
keyframes: {
bounceIn: {
'0%': {
opacity: '0',
transform: 'scale(0.5)',
},
'100%': {
opacity: '1',
transform: 'scale(1)',
},
},
bounceOut: {
'0%': {
opacity: '1',
transform: 'scale(1)',
},
'100%': {
opacity: '0',
transform: 'scale(0.5)',
},
},
dash: {
'0%': {
'stroke-dasharray': '1, 150',
'stroke-dashoffset': '0',
},
'50%': {
'stroke-dasharray': '90, 150',
'stroke-dashoffset': '-35',
},
'100%': {
'stroke-dasharray': '90, 150',
'stroke-dashoffset': '-124',
},
},
dropIn: {
'0%': {
opacity: '0',
transform: 'translateY(-50%)',
},
'100%': {
opacity: '1',
transform: 'translateY(0%)',
},
},
dropOut: {
'0%': {
opacity: '1',
transform: 'translateY(0%)',
},
'100%': {
opacity: '0',
transform: 'translateY(-50%)',
},
},
fadeIn: {
'0%': {
opacity: '0',
},
'100%': {
opacity: '1',
},
},
fadeOut: {
'0%': {
opacity: '1',
},
'100%': {
opacity: '0',
},
},
scaleIn: {
'0%': {
opacity: '0',
transform: 'scale(0.8)',
},
'100%': {
opacity: '1',
transform: 'scale(1)',
},
},
scaleOut: {
'0%': {
opacity: '1',
transform: 'scale(1)',
},
'100%': {
opacity: '0',
transform: 'scale(0.8)',
},
},
slideIn: {
'0%': {
opacity: '0',
transform: 'scaleY(0)',
},
'100%': {
opacity: '1',
transform: 'scaleY(1)',
},
},
slideOut: {
'0%': {
opacity: '1',
transform: 'scaleY(1)',
},
'100%': {
opacity: '0',
transform: 'scaleY(0)',
},
},
swipeInRight: {
'0%': {
opacity: '0',
transform: 'translateX(100%)',
},
'100%': {
opacity: '1',
transform: 'translateX(0)',
},
},
swipeOutRight: {
'0%': {
opacity: '1',
transform: 'translateX(0)',
},
'100%': {
opacity: '0',
transform: 'translateX(100%)',
},
},
swipeInLeft: {
'0%': {
opacity: '0',
transform: 'translateX(-100%)',
},
'100%': {
opacity: '1',
transform: 'translateX(0)',
},
},
swipeOutLeft: {
'0%': {
opacity: '1',
transform: 'translateX(0)',
},
'100%': {
opacity: '0',
transform: 'translateX(-100%)',
},
},
},
screens: {
'input-hover': { raw: '(hover: hover)' },
pwa: { raw: '(display-mode: standalone)' },
},
},
},
}