-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
73 lines (72 loc) ยท 2.17 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
import type { Config } from "tailwindcss";
const defaultTheme = require('tailwindcss/defaultTheme');
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}"
],
theme: {
screens: {
xxs: "320px",
xs: "486px",
...defaultTheme.screens
},
extend: {
screens: {
betterhover: { raw: "(hover: hover)" }
},
keyframes: {
fadeInUp: {
"0%": { transform: "scale(0.95)", opacity: "0" },
"100%": { transform: "scale(1.0)", opacity: "1" }
},
fadeOutDown: {
"0%": { transform: "scale(1.0)", opacity: "1" },
"100%": { transform: "scale(0.95)", opacity: "0" }
},
slideOutRight: {
"0%": { transform: "translateX(0)" },
"100%": { transform: "translateX(100%)" }
},
slideOutLeft: {
"0%": { transform: "translateX(100%)" },
"100%": { transform: "translateX(0)" }
},
buttonCopyAnimation: {
"0%": {
"background-color": "#3b82f6",
transform: "scale(1)"
},
"50%": {
"background-color": "#10b981",
transform: "scale(1.1)"
},
"100%": {
"background-color": "#3b82f6",
transform: "scale(1)"
}
},
sectionNavSlideRight: {
"0%": { transform: "translateX(0%)", opacity: "1" },
"100%": { transform: "translateX(50%)", opacity: "0" }
},
sectionNavSlideLeft: {
"0%": { transform: "translateX(50%)", opacity: "0" },
"100%": { transform: "translateX(0%)", opacity: "1" }
}
},
animation: {
entering: "fadeInUp 200ms ease-out",
leaving: "fadeOutDown 200ms ease-in",
slideOutRight: "slideOutRight 0.5s ease-in-out",
slideOutLeft: "slideOutLeft 0.5s",
buttonCopyAnimation: "buttonCopyAnimation 0.5s ease",
sectionNavSlideRight: "sectionNavSlideRight 0.5s ease-in-out",
sectionNavSlideLeft: "sectionNavSlideLeft 0.5s"
}
}
},
plugins: []
};
export default config;