-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
113 lines (112 loc) · 3.36 KB
/
Copy pathtailwind.config.ts
File metadata and controls
113 lines (112 loc) · 3.36 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
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
import type { Config } from "tailwindcss";
const config: Config = {
darkMode: ["class"],
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./content/**/*.{md,mdx}",
],
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
keyframes: {
"accordion-down": {
from: {
height: "0",
},
to: {
height: "var(--radix-accordion-content-height)",
},
},
"accordion-up": {
from: {
height: "var(--radix-accordion-content-height)",
},
to: {
height: "0",
},
},
heartbeat: {
"0%": { transform: "scale(1)" },
"25%": { transform: "scale(1.4)" },
"50%": { transform: "scale(1)" },
"75%": { transform: "scale(1.4)" },
"100%": { transform: "scale(1)" },
},
"pulse-arrow": {
"0%, 70%, 100%": {
transform: "translateX(0)",
},
"75%": {
transform: "translateX(4px)",
},
"80%": {
transform: "translateX(0)",
},
"85%": {
transform: "translateX(4px)",
},
"90%": {
transform: "translateX(0)",
},
"95%": {
transform: "translateX(4px)",
},
},
"star-hover": {
"0%, 100%": {
transform: "scale(1)",
fill: "rgb(250 204 21)", // fill-yellow-400
color: "rgb(234 179 8)", // text-yellow-500
filter: "none",
},
"50%": {
transform: "scale(1.1)",
fill: "rgb(255 215 0)", // gold
color: "rgb(255 165 0)", // orange-gold
filter:
"drop-shadow(0 2px 4px rgb(255 215 0 / 0.3)) drop-shadow(0 1px 2px rgb(255 165 0 / 0.2)) brightness(1.1)",
},
},
"rotate-shine": {
"0%": {
opacity: "0",
transform: "rotate(0deg) translate(-50%, -50%)",
},
"60%": {
opacity: "0",
transform: "rotate(0deg) translate(-50%, -50%)",
},
"66%": { opacity: "0.15" },
"72%": { opacity: "1" },
"80%": { opacity: "1" },
"92%": { opacity: "0" },
"100%": {
opacity: "0",
transform: "rotate(360deg) translate(-50%, -50%)",
},
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
heartbeat: "heartbeat 3s ease-in-out infinite 5s", // 3s = duration of animation, infinite = repeat forever, 5s = delay before starting animation,
"pulse-arrow": "pulse-arrow 5s infinite",
"star-hover": "star-hover 2s ease-in-out infinite 6s",
"rotate-shine": "rotate-shine 5s ease-in-out infinite",
},
},
},
// eslint-disable-next-line @typescript-eslint/no-require-imports
plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
};
export default config;