-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
160 lines (157 loc) · 4.43 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
import { nextui } from "@nextui-org/theme";
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
"./node_modules/@material-tailwind/react/components/**/*.{js,ts,jsx,tsx}",
"./node_modules/@material-tailwind/react/theme/components/**/*.{js,ts,jsx,tsx}",
"node_modules/flowbite-react/lib/esm/**/*.js",
],
theme: {
extend: {
animation: {
"bounce-slow-2500": "bounce 2.5s infinite",
"bounce-slow-3500": "bounce 3.5s infinite",
"slide-in-to-up-500": "slideInUp 0.5s ease-in",
"slide-in-to-up-1000": "slideInUp 1s ease-in",
"slide-in-to-up-1500": "slideInUp 1.5s ease-in",
"slide-in-to-down-1000": "slideInDown 1s ease-in",
"slide-in-to-down-2000": "slideInDown 2s ease-in",
"slide-in-from-left-500": "slideInLeft 0.5s ease-in",
"slide-in-from-left-1000": "slideInLeft 1s ease-in",
"slide-in-from-right-800": "slideInRight 0.8s ease-in",
"slide-in-from-right-1000": "slideInRight 1s ease-in",
"slide-out-to-up-500": "slideOutUp 0.5s ease-out forwards",
"scale-5000": "scale 5s ease-in-out infinite",
"scale-small-7000": "scaleSmall 7s ease-in-out infinite",
// 首页光影背景 animation
"blob-tr-7000": "blobTopRight 7s infinite",
"blob-lb-7000": "blobLeftBottom 7s infinite",
},
keyframes: {
// 首页光影背景 keyframe
blobTopRight: {
"0%": {
transform: "translate(0px, 0px) scale(1)",
},
"32%": {
transform: "translate(30px, -50px) scale(1.2)",
},
"66%": {
transform: "translate(-20px, 20px) scale(0.8)",
},
"100%": {
transform: "translate(0px, 0px) scale(1)",
},
},
blobLeftBottom: {
"0%": {
transform: "translate(0px, 0px) scale(1)",
},
"32%": {
transform: "translate(-30px, 50px) scale(1.2)",
},
"66%": {
transform: "translate(20px, -20px) scale(0.8)",
},
"100%": {
transform: "translate(0px, 0px) scale(1)",
},
},
bounce: {
"0%, 100%": {
transform: "translateY(-10%)",
animationTimingFunction: "cubic-bezier(0.8, 0, 1, 1)",
},
"50%": {
transform: "translateY(0)",
animationTimingFunction: "cubic-bezier(0, 0, 0.2, 1)",
},
},
slideInUp: {
"0%": {
transform: "translateY(100%)",
opacity: 0,
},
"100%": {
transform: "translateY(0)",
opacity: 1,
},
},
slideInDown: {
"0%": {
transform: "translateY(-100%)",
opacity: 0,
},
"100%": {
transform: "translateY(0)",
opacity: 1,
},
},
slideInLeft: {
"0%": {
transform: "translateX(-100%)",
opacity: 0,
},
"100%": {
transform: "translateX(0)",
opacity: 1,
},
},
slideInRight: {
"0%": {
transform: "translateX(100%)",
opacity: 0,
},
"100%": {
transform: "translateX(0)",
opacity: 1,
},
},
slideOutUp: {
from: {
opacity: 1,
transform: "translateY(0)",
},
to: {
opacity: 0,
transform: "translateY(-100%)",
},
},
scale: {
"0%": {
transform: "scale(1)",
},
"25%": {
transform: "scale(1.2)",
},
"50%": {
transform: "scale(1)",
},
"75%": {
transform: "scale(1.2)",
},
},
scaleSmall: {
"0%": {
transform: "scale(1)",
},
"25%": {
transform: "scale(1.03)",
},
"50%": {
transform: "scale(1)",
},
"75%": {
transform: "scale(1.03)",
},
},
},
},
},
darkMode: "class",
plugins: [nextui()],
};