-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
59 lines (56 loc) · 1.75 KB
/
Copy pathtailwind.config.ts
File metadata and controls
59 lines (56 loc) · 1.75 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
import type { Config } from "tailwindcss";
const withOpacity = (variable: string) => `rgb(var(${variable}) / <alpha-value>)`;
const config: Config = {
darkMode: ["class"],
content: [
"./app/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./lib/**/*.{ts,tsx}",
"./styles/**/*.{ts,tsx}"
],
theme: {
extend: {
colors: {
bg: withOpacity("--bg-rgb"),
surface: withOpacity("--surface-rgb"),
"surface-2": withOpacity("--surface-2-rgb"),
border: withOpacity("--border-rgb"),
text: withOpacity("--text-rgb"),
"text-2": withOpacity("--text-2-rgb"),
accent: withOpacity("--accent-rgb"),
"accent-2": withOpacity("--accent-2-rgb"),
green: withOpacity("--green-rgb"),
yellow: withOpacity("--yellow-rgb"),
red: withOpacity("--red-rgb")
},
backgroundImage: {
grain:
"radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0)"
},
boxShadow: {
glow: "0 0 0 1px rgba(124, 111, 255, 0.35), 0 20px 40px rgba(0, 0, 0, 0.25)"
},
keyframes: {
float: {
"0%, 100%": { transform: "translateY(0px)" },
"50%": { transform: "translateY(-8px)" }
},
pulseBorder: {
"0%, 100%": { borderColor: "rgba(124,111,255,0.25)" },
"50%": { borderColor: "rgba(124,111,255,0.55)" }
},
shimmer: {
"0%": { backgroundPosition: "-200% 0" },
"100%": { backgroundPosition: "200% 0" }
}
},
animation: {
float: "float 6s ease-in-out infinite",
"pulse-border": "pulseBorder 2.6s ease-in-out infinite",
shimmer: "shimmer 2.2s linear infinite"
}
}
},
plugins: []
};
export default config;