-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
84 lines (83 loc) · 2.22 KB
/
tailwind.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
74
75
76
77
78
79
80
81
82
83
84
import type { Config } from 'tailwindcss'
const config: Config = {
mode: 'jit',
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
animation: {
'modal-bg-appear': 'modal-bg-appear 0.2s ease-in-out',
'modal-bg-disappear': 'modal-bg-disappear 0.2s ease-in-out',
'modal-content-appear': 'modal-content-appear 0.2s ease-in-out',
'modal-content-disappear': 'modal-content-disappear 0.2s ease-in-out',
'message-appear': 'message-appear 0.2s ease-in-out',
'message-disappear': 'message-disappear 0.2s ease-in-out',
},
keyframes: {
'message-appear': {
'0%': {
"opacity": "0",
"transform": "translateY(-1rem)",
},
'100%': {
"opacity": "1",
"transform": "translateY(0)",
},
},
'message-disappear': {
'0%': {
"opacity": "1",
"transform": "translateY(0)",
},
'100%': {
"opacity": "0",
"transform": "translateY(-1.5rem)",
},
},
'modal-bg-appear': {
'0%': {
"backdrop-filter": "blur(0px)",
},
'100%': {
"backdrop-filter": 'blur(2px)',
"background-color": "rgba(0, 0, 0, 0.3)",
},
},
'modal-bg-disappear': {
'0%': {
"backdrop-filter": 'blur(2px)',
},
'100%': {
"backdrop-filter": 'blur(0px)',
"background-color": "rgba(0, 0, 0, 0)",
},
},
"modal-content-appear": {
"0%": {
"scale": ".2",
"transform": "translateY(4rem)",
},
"100%": {
"scale": "1",
"transform": "translateY(0)",
},
},
"modal-content-disappear": {
"0%": {
"scale": "1",
"transform": "translateY(0)",
},
"100%": {
"scale": ".2",
"transform": "translateY(4rem)",
},
},
}
},
},
plugins: [],
}
export default config