-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtailwind.base.js
More file actions
67 lines (66 loc) · 1.91 KB
/
tailwind.base.js
File metadata and controls
67 lines (66 loc) · 1.91 KB
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
const defaultPlugin = require("tailwindcss/plugin")(
// https://tailwindcss.com/docs/plugins
({ addUtilities, addComponents, addBase }) => {
addUtilities({
".centric": {
display: "flex",
"justify-content": "center",
"align-items": "center",
},
});
addComponents({});
addBase({});
},
{
theme: {
container: { center: true },
extend: {
transitionProperty: {
all: "all",
},
keyframes: {
fadeIn: {
"0%": { opacity: 0 },
"100%": { opacity: 1 },
},
flyOut: {
"0%": { opacity: 1, transform: "translate(-50%, -100%)" },
"100%": { opacity: 0, transform: "translate(-50%, -140%)" },
},
drop: {
"0%": { opacity: 0, transform: "translate(-50%, -140%)" },
"100%": { opacity: 1, transform: "translate(-50%, -100%)" },
},
fadeOut: {
"0%": { opacity: 1 },
"100%": { opacity: 0 },
},
flash: {
"0%": { opacity: 1 },
"50%": { opacity: 0.2 },
"100%": { opacity: 1 },
},
spin: {
"0%": { transform: "rotate(0deg)" },
"100%": { transform: "rotate(360deg)" },
},
pop: {
"0%": { transform: "scale(0, 0)" },
"50%": { transform: "scale(1.5, 1.5)" },
"100%": { transform: "scale(1, 1)" },
},
},
animation: {
fadeIn: "fadeIn 0.5s ease-in-out forwards",
fadeOut: "fadeOut 0.5s ease-in-out forwards",
flyOut: "flyOut 0.5s ease-in-out forwards",
drop: "drop 0.5s ease-in-out forwards",
flash: "flash 1s linear infinite",
spin: "spin 1s linear infinite",
pop: "pop 0.5s ease-in-out forwards",
},
},
},
}
);
module.exports = { defaultPlugin };