-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.ts
199 lines (198 loc) · 5.96 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
const aspectRatio = require("@tailwindcss/aspect-ratio")
const forms = require("@tailwindcss/forms")
const typography = require("@tailwindcss/typography")
const defaultTheme = require("tailwindcss/defaultTheme")
/**
* @type {import('tailwindcss').Config}
* @see https://tailwindcss.com/docs/configuration
*
*/
module.exports = {
content: [
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/common/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/ui/**/*.{js,ts,jsx,tsx,mdx}",
"./src/sushi-ui/**/*.{js,ts,jsx,tsx,mdx}"
],
// content: [
// // app content
// `src/**/*.{js,ts,jsx,tsx}`,
// // include packages if not transpiling
// '../../packages/**/*.{js,ts,jsx,tsx}',
// ],
plugins: [forms, aspectRatio, typography, require("tailwindcss-animate")],
theme: {
screens: {
...defaultTheme.screens
},
extend: {
fontFamily: {
sans: ["var(--font-inter)"],
mono: ["var(--font-roboto-mono)"]
},
backgroundImage: () => ({
"gradient-radial": "radial-gradient(#13213E, #111829)",
"shimmer-gradient":
"linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.03) 70%, rgba(255, 255, 255, 0) 100%)",
"shimmer-gradient-dark":
"linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.03) 30%, rgba(0, 0, 0, 0.06) 50%, rgba(0, 0, 0, 0.03) 70%, rgba(0, 0, 0, 0) 100%)"
}),
boxShadow: {
md: "rgba(0, 0, 0, 0.09) 0px 3px 12px",
lg: "rgba(0, 0, 0, 0.16) 2px 6px 24px",
xl: "rgba(0, 0, 0, 0.24) 2px 6px 24px",
"depth-1": "0px 3px 6px rgba(15, 15, 15, 0.5)",
"hover-card":
"rgb(101 119 134 / 20%) 0px 0px 15px, rgb(101 119 134 / 15%) 0px 0px 3px 1px"
},
colors: {
blue: {
DEFAULT: "#3b82f6"
},
pink: {
DEFAULT: "#ec4899"
},
green: {
DEFAULT: "#22c55e"
},
red: {
DEFAULT: "#ef4444"
},
yellow: {
DEFAULT: "#eab308"
},
primary: "var(--color)",
secondary: "var(--secondary)",
muted: "var(--muted)",
"muted-foreground": "var(--muted-foreground)",
accent: "var(--accent)",
"accent-foreground": "var(--accent-foreground)",
background: "var(--background)"
},
animation: {
ellipsis: "ellipsis 1.25s infinite",
"spin-slow": "spin 2s linear infinite",
heartbeat: "heartbeat 1s ease 0.2s infinite normal forwards",
rotate: "rotate360 1s cubic-bezier(0.83, 0, 0.17, 1) infinite",
wave: "shimmer 1.25s cubic-bezier(0.4, 0, 0.6, 1) infinite",
draw: "draw 0.5s cubic-bezier(0.25, 0.25, 0.25, 1) forwards",
dash: "dash 1.5s 2s ease-out infinite",
grow: "grow 1s cubic-bezier(0.25, 0.25, 0.25, 1) forwards",
"dash-check": "dash-check 1.5s 2s ease-out infinite",
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
walk: "walk 0.5s linear infinite",
shadow: "shadow 0.5s linear infinite"
},
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" }
},
shimmer: {
"100%": {
transform: "translateX(100%)"
}
},
ellipsis: {
"0%": { content: '"."' },
"33%": { content: '".."' },
"66%": { content: '"..."' }
},
heartbeat: {
"0%": {
transform: "scale(1)",
transformOrigin: "center center",
animationTimingFunction: "ease-out"
},
"10%": {
animationTimingFunction: "ease-out",
transform: "scale(0.91)"
},
"17%": {
animationTimingFunction: "ease-out",
transform: "scale(0.98)"
},
"33%": {
animationTimingFunction: "ease-out",
transform: "scale(0.87)"
},
"45%": { animationTimingFunction: "ease-out", transform: "scale(1)" }
},
rotate360: {
from: {
transform: "rotate(0deg)"
},
to: {
transform: "rotate(360deg)"
}
},
dash: {
"0%": {
strokeDashoffset: "1000"
},
"100%": {
strokeDashoffset: "0"
}
},
"dash-check": {
"0%": {
strokeDashoffset: "-100"
},
"100%": {
strokeDashoffset: "900"
}
},
draw: {
"0%": { strokeOpacity: "1" },
"100%": { strokeOpacity: "1", strokeDashoffset: "0" }
},
grow: {
"0%": {
transform: "scale(0)"
},
"60%": {
transform: "scale(0.8)",
strokeWidth: "4px",
fillOpacity: "0"
},
"100%": {
transform: "scale(0.9)",
strokeWidth: "8px",
fillOpacity: "1",
fill: "currentColor"
}
},
walk: {
"17%": {
"border-bottom-right-radius": "3px"
},
"25%": {
transform: "translateY(9px) translateX(9px)"
},
"50%": {
transform: "translateY(18px) translateX(18px) scale(1,.9)",
"border-bottom-right-radius": "40px"
},
"75%": {
transform: "translateY(9px) translateX(9px)"
},
"100%": {
transform: "translateY(0) translateX(0)"
}
},
shadow: {
"50%": {
transform: "scale(1.2,1)"
}
}
}
}
}
}