-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
tailwind.config.ts
156 lines (154 loc) · 4.22 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
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
148
149
150
151
152
153
154
155
156
import type { Config } from "tailwindcss";
import colors from "tailwindcss/colors";
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
background: {
DEFAULT: colors.neutral[950],
muted: "#0d0d0d",
},
primary: colors.white,
secondary: "#c2c2c2",
foreground: {
DEFAULT: "#b5b3ad",
accent: "#f1f7feb5",
},
muted: colors.neutral[500],
border: "#262626",
},
animation: {
flip: "flip 6s infinite steps(2, end)",
rotate: "rotate 3s linear infinite both",
shine: "shine 6s linear infinite",
"border-width": "border-width 3s infinite alternate",
"text-gradient": "text-gradient 2s linear infinite",
"text-shake": "text-shake 1s ease 1",
"text-glitch-to": "text-glitch-to 0.6s ease-in-out infinite",
"text-glitch-from": "text-glitch-from 0.6s ease-in-out infinite",
"text-scale": "text-scale 1s linear infinite forwards",
"infinite-slider": "infinite-slider 40s linear infinite",
spotlight: "spotlight 2s ease 1 forwards",
brightness: "brightness 2.2s linear infinite",
spinner: "spinner 1.2s linear infinite",
},
backgroundImage: {
"fade-gradient":
"linear-gradient(90deg, #0a0a0a, transparent 20%, transparent 80%, #0a0a0a)",
},
keyframes: {
flip: {
to: {
transform: "rotate(360deg)",
},
},
rotate: {
to: {
transform: "rotate(90deg)",
},
},
shine: {
from: {
backgroundPosition: "0 0",
},
to: {
backgroundPosition: "-400% 0",
},
},
"border-width": {
from: {
width: "10px",
opacity: "0",
},
to: {
width: "100px",
opacity: "1",
},
},
"text-gradient": {
to: {
backgroundPosition: "200% center",
},
},
"text-shake": {
"15%": { transform: "translateX(5px)" },
"30%": { transform: "translateX(-5px)" },
"50%": { transform: "translateX(3px)" },
"80%": { transform: "translateX(2px)" },
"100%": { transform: "translateX(0)" },
},
"text-glitch-to": {
from: {
transform: "translateY(0)",
},
to: {
transform: "translateY(-100%)",
},
},
"text-glitch-from": {
from: {
transform: "translateY(100%)",
},
to: {
transform: "translateY(0)",
},
},
brightness: {
"0%": {
transform: "skew(-13deg) translateX(-100%)",
},
"100%": {
transform: "skew(-13deg) translateX(100%)",
},
},
spinner: {
"0%": { opacity: "1" },
"100%": { opacity: "0.15" },
},
"text-scale": {
"0%": {
transform: "scaleX(0)",
transformOrigin: "bottom left",
},
"25%": {
transform: "scaleX(1)",
transformOrigin: "bottom left",
},
"75%": {
transform: "scaleX(1)",
transformOrigin: "bottom right",
},
"100%": {
transform: "scaleX(0)",
transformOrigin: "bottom right",
},
},
"infinite-slider": {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-100% - var(--gap)))" },
},
spotlight: {
"0%": {
opacity: "0",
transform: "translate(-72%, -62%) scale(0.5)",
},
"100%": {
opacity: "1",
transform: "translate(-50%,-40%) scale(1)",
},
},
},
},
fontFamily: {
sans: "var(--font-geist-sans)",
mono: "var(--font-geist-mono)",
},
},
plugins: [require("tailwindcss-animate")],
};
export default config;