-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
147 lines (127 loc) · 3.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
// const plugin = require("tailwindcss/plugin");
// module.exports = {
// content: ["./index.html", "./src/**/*.{js,jsx,ts,tsx}"],
// theme: {
// extend: {
// // Adding custom perspective for 3D effect
// perspective: {
// '150rem': '150rem',
// },
// // Optional: Customize rotateY angles
// rotateY: {
// '180': '180deg',
// },
// },
// },
// plugins: [
// plugin(function ({ addUtilities }) {
// addUtilities({
// // Text Shadow Glow
// ".text-shadow-glow": {
// textShadow:
// "0 0 10px rgba(255, 165, 0, 0.8), 0 0 20px rgba(255, 223, 0, 0.6), 0 0 30px rgba(255, 223, 0, 0.4)",
// },
// // Backface hidden utility (to hide the back of the card while rotating)
// ".backface-hidden": {
// backfaceVisibility: "hidden",
// },
// // Preserve 3D transformations (for rotating cards)
// ".transform-style-3d": {
// transformStyle: "preserve-3d",
// },
// // Perspective utility for 3D effect
// ".perspective-150rem": {
// perspective: "150rem",
// },
// });
// }),
// ],
// };
// @keyframes jelly {
// 0% {
// transform: scale(1);
// }
// 30% {
// transform: scale(1.1, 0.9);
// }
// 50% {
// transform: scale(0.9, 1.1);
// }
// 70% {
// transform: scale(1.05, 0.95);
// }
// 100% {
// transform: scale(1);
// }
// }
// @layer utilities {
// .animate-jelly {
// animation: jelly 0.5s ease-in-out;
// }
// }
const plugin = require("tailwindcss/plugin");
module.exports = {
content: ["./index.html", "./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
fontFamily: {
grotesk: ['FoundersGrotesk', 'sans-serif'],
montreal: ['NeueMontreal', 'sans-serif'],
},
// Adding custom perspective for 3D effect
perspective: {
'150rem': '150rem',
},
// Optional: Customize rotateY angles
rotateY: {
'180': '180deg',
},
// Extend animations
animation: {
'jelly': 'jelly 0.5s ease-in-out',
},
// Custom Keyframes for Jelly animation
keyframes: {
jelly: {
'0%': { transform: 'scale(1)' },
'30%': { transform: 'scale(1.1, 0.9)' },
'50%': { transform: 'scale(0.9, 1.1)' },
'70%': { transform: 'scale(1.05, 0.95)' },
'100%': { transform: 'scale(1)' },
},
},
},
},
plugins: [
plugin(function ({ addUtilities }) {
addUtilities({
// Text Shadow Glow
".text-shadow-glow": {
textShadow:
"0 0 10px rgba(255, 165, 0, 0.8), 0 0 20px rgba(255, 223, 0, 0.6), 0 0 30px rgba(255, 223, 0, 0.4)",
},
// Backface hidden utility (to hide the back of the card while rotating)
".backface-hidden": {
backfaceVisibility: "hidden",
},
// Preserve 3D transformations (for rotating cards)
".transform-style-3d": {
transformStyle: "preserve-3d",
},
// Perspective utility for 3D effect
".perspective-150rem": {
perspective: "150rem",
},
'.font-condensed': {
fontStretch: 'condensed',
},
'.font-expanded': {
fontStretch: 'expanded',
},
'.font-normal-width': {
fontStretch: 'normal',
},
});
}),
],
};