-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
40 lines (40 loc) · 1.05 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
animation: {
wiggle: "wiggle 1s ease-in-out infinite",
hueRotate: "hueRotate 1s ease-in-out infinite",
},
textShadow: {
sm: "1px 1px 2px rgba(0, 0, 0, 0.5)",
md: "2px 2px 4px rgba(0, 0, 0, 0.5)",
lg: "3px 3px 6px rgba(0, 0, 0, 0.5)",
},
keyframes: {
wiggle: {
"0%, 100%": { transform: "translateX(-10px)" },
"50%": { transform: "translateX(10px)" },
},
},
},
plugins: [
function ({ addUtilities }) {
const newUtilities = {
".text-shadow-sm": {
textShadow: "1px 1px 2px rgba(0, 0, 0, 0.5)",
},
".text-shadow-md": {
textShadow: "2px 2px 4px rgba(0, 0, 0, 0.5)",
},
".text-shadow-lg": {
textShadow: "3px 3px 6px rgba(0, 0, 0, 0.5)",
},
};
addUtilities(newUtilities);
},
],
},
plugins: [],
};