-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
211 lines (209 loc) · 5.85 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
import { transform } from "next/dist/build/swc";
import type { Config } from "tailwindcss";
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: {
fontFamily: {
sans: '"SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", sans-serif',
},
colors: {
transparent: "transparent",
grey: "#858699",
white: "#ffffff",
background: "#000212",
brand: "#5e6ad2",
"off-white": "#f7f8f8",
"transparent-white": "hsla(0,0%,100%,.08)",
"tertiary-text": "#b4bcd099",
"secondary-text": "#b4bcd0",
},
fontSize: {
xs: "1.3rem",
sm: "1.4rem",
md: "1.6rem",
lg: "1.8rem",
xl: ["2.2rem", "1.3"],
"2xl": "2.4rem",
"3xl": "2.6rem",
"4xl": "3.2rem",
"5xl": "4rem",
"6xl": ["4.4rem", "1.1"],
"7xl": ["4.8rem", "1.1"],
"8xl": ["8rem", "1.1"],
},
spacing: {
0: "0",
1: "0.4rem",
2: "0.8rem",
3: "1.2rem",
4: "1.6rem",
5: "2rem",
6: "2.4rem",
7: "2.8rem",
8: "3.2rem",
9: "3.6rem",
10: "4rem",
11: "4.4rem",
12: "4.8rem",
13: "5.2rem",
14: "5.6rem",
15: "6rem",
16: "6.4rem",
"nav-height": "var(--nav-height)",
},
backgroundImage: {
"radial-gradient":
"linear-gradient(92.88deg, #455eb5 20%, #5643cc 50%, #673fd7 70%)",
"page-gradient":
"radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, .3), transparent)",
"hero-gradient":
"radial-gradient(ellipse 50% 80% at 20% 40%, rgba(93, 52, 221, .1), transparent), radial-gradient(ellipse 50% 80% at 80% 50%, rgba(120, 119, 198, .15), transparent)",
"hero-glow":
"conic-gradient(from 230.29deg at 51.63% 52.16%, rgb(36, 0, 255) 0deg, rgb(0, 135, 255) 67.5deg, rgb(108, 39, 157) 198.75deg, rgb(24, 38, 163) 251.25deg, rgb(54, 103, 196) 301.88deg, rgb(105, 30, 255) 360deg)",
"glow-line":
"linear-gradient(var(--direction),#9d9bf2 .43%,#7877c6 14.11%,rgba(120,119,198,0) 62.95%)",
"radial-faded":
"radial-gradient(circle at center bottom,var(--color),transparent 70%)",
"glass-gradient":
"linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,.05))",
},
keyframes: {
"fade-in": {
from: { opacity: "0", transform: "translateY(-10px)" },
to: { opacity: "1", transform: "none" },
},
"hero-rotate": {
"0%": {
scale: "1",
transform: "rotateX(25deg)",
},
"50%": {
scale: "0.8",
transform: "rotateX(25deg)",
},
"60%": {
transform: "rotateX(25deg)",
scale: "0.8",
},
"100%": {
transform: "rotateX(0deg)",
scale: "1",
},
},
"hero-image": {
"0%,75%": {
opacity: "0",
},
"100%": {
opacity: "1",
},
},
"hero-glow": {
"0%": {
opacity: "0",
},
"25%": {
opacity: "1",
inset: "-10px",
},
"100%": {
opacity: "1",
inset: "100px",
},
},
"hero-sketch": {
"0%": {
strokeDashoffset: "1",
},
"50%": {
strokeDashoffset: "0",
},
"99%": {
strokeDashoffset: "0",
},
"100%": {
visibility: "hidden",
},
},
"glow-lines-horizontal": {
"0%": { opacity: "0", transform: "translateX(0)" },
"5%": { opacity: "1", transform: "translateX(0)" },
"90%": { opacity: "1" },
"100%": { opacity: "0", transform: "translateX(min(60vw, 45rem))" },
},
"glow-lines-vertical": {
"0%": { opacity: "0", transform: "translateY(0)" },
"5%": { opacity: "1", transform: "translateY(0)" },
"90%": { opacity: "1" },
"100%": { opacity: "0", transform: "translateY(min(20vw, 30rem))" },
},
zap: {
"0%, 11%, 9%, 100%": {
fill: "transparent",
},
"10%": {
fill: "#fff",
},
},
"feature-slide": {
"0%": {
transform: "translateX(var(--translate))",
opacity: "0",
},
"60%": {
opacity: "1",
},
"100%": {
opacity: "1",
transform: "translateX(0)",
},
},
"feature-gradient-booster": {
"0%": {
opacity: "0",
transform: "scale(0.9)",
},
"40%,50%": {
opacity: "1",
transform: "scale(1)",
},
"100%": {
opacity: "0",
},
},
"feature-circles": {
"0%": {
opacity: "0",
transform: "scale(0.9)",
},
"50%,60%": {
opacity: "1",
scale: "1",
},
"100%": {
opacity: "0",
},
},
},
animation: {
"fade-in": "fade-in 1s var(--animation-delay) ease forwards",
"hero-rotate": "hero-rotate 1400ms ease forwards",
"hero-image": "hero-image 600ms 400ms ease forwards",
"hero-glow": "hero-glow 4s 800ms ease-out forwards",
"hero-sketch": "hero-sketch 800ms ease-out forwards",
"glow-lines-horizontal": "glow-lines-horizontal var(--duration) ease-in",
"glow-lines-vertical": "glow-lines-vertical var(--duration) ease-in",
zap: "zap 2.5s calc((var(--index) - 1) * 20ms) linear infinite",
"feature-slide":
"feature-slide 800ms calc(var(--index) * 100ms) ease-in-out forwards",
"feature-circles":
"feature-circles 3400ms calc(500ms + var(--delay)) infinite backwards",
},
},
plugins: [],
};
export default config;