-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.ts
192 lines (190 loc) · 5.98 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
import type { Config } from "tailwindcss";
import { PluginAPI } from "tailwindcss/types/config";
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: {
fontFamily: {
custom: ["CustomFont", "sans-serif"],
},
colors: {
main: "#00B488",
black: "#111111",
gray1: "#666666",
gray2: "#A3A3A3",
gray3: "#d9d9d9",
lightGreen: "#F2FAF7",
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
"search-icon": "url('/common/search-icon.png')",
},
keyframes: {
sidebarFadeIn: {
from: { transform: "translateY(-35.5rem)" },
to: { transform: "translateY(0)" },
},
sidebarFadeOut: {
from: { transform: "translateY(0)" },
to: { transform: "translateY(-35.5rem)" },
},
buttonRotation: {
from: { transform: "rotate(-90deg)", "background-color": "black" },
to: { transform: "rotate(0deg)", "background-color": "bg-main" },
},
buttonReverseRotation: {
from: { transform: "rotate(0deg)", "background-color": "bg-main" },
to: { transform: "rotate(-90deg)", "background-color": "black" },
},
fadeIn: {
from: { opacity: "0" },
to: { opacity: "1" },
},
fadeOut: {
from: { opacity: "1" },
to: { opacity: "0" },
},
bannerImage: {
"0%": { transform: "translateY(-1rem)" },
"46.6%": { transform: "translateY(0.75rem)" },
"100%": { transform: "translateY(-1rem)" },
},
cardFlip: {
from: { transform: "rotateY(-90deg)" },
to: { transform: "rotateY(0deg)" },
},
cardFlip2: {
from: { transform: "rotateY(0deg)" },
to: { transform: "rotateY(90deg)" },
},
pulseAuth: {
"0%": {
"background-image":
"linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%)",
},
"50%": {
"background-image":
"linear-gradient(90deg, #f0f0f0 25%, #f0f0f0 50%, #e0e0e0 75%)",
},
"100%": {
"background-image":
"linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%)",
},
},
arrow: {
from: { transform: "scale(1)" },
to: { transform: "scale(1.5)" },
},
rotate: {
from: { transform: "rotate(0deg)" },
to: { transform: "rotate(360deg)" },
},
rotateReversed: {
from: { transform: "rotate(0deg)" },
to: { transform: "rotate(-360deg)" },
},
},
animation: {
sidebarFadeIn: "sidebarFadeIn 0.3s",
sidebarFadeOut: "sidebarFadeOut 0.3s",
buttonRotation: "buttonRotation 0.3s",
buttonReverseRotation: "buttonReverseRotation 0.3s",
fadeIn: "fadeIn 0.5s",
fadeOut: "fadeOut 0.5s",
bannerImage: "bannerImage 1.8s ease-in-out infinite",
cardFlip: "cardFlip 0.5s linear",
cardFlip2: "cardFlip2 0.5s linear",
pulseAuth: "pulseAuth 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
arrow: "arrow 1s linear infinite alternate",
rotate: "rotate 15s linear infinite",
rotateReversed: "rotateReversed 15s linear infinite",
},
},
},
plugins: [
({ addComponents }: PluginAPI) => {
addComponents({
".truncate-vertical-information-title": {
"text-overflow": "ellipsis",
overflow: "hidden",
"word-break": "break-word",
display: "-webkit-box",
"-webkit-line-clamp": "2",
"-webkit-box-orient": "vertical",
},
".scrollbar-hide": {
"-ms-overflow-style": "none" /* IE and Edge */,
"scrollbar-width": "none" /* Firefox */,
"&::-webkit-scrollbar": {
display: "none" /* Chrome, Safari, and Opera */,
},
},
".truncate-vertical-diary-content": {
"text-overflow": "ellipsis",
overflow: "hidden",
"work-break": "break-word",
display: "-webkit-box",
"-webkit-line-clamp": "7",
"-webkit-box-orient": "vertical",
},
"@media (max-width: 1024px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "6",
},
},
"@media (max-width: 1000px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "5",
},
},
"@media (max-width: 972px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "7",
},
},
"@media (max-width: 950px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "6",
},
},
"@media (max-width: 910px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "5",
},
},
"@media (max-width: 875px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "4",
},
},
"@media (max-width: 845px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "5",
},
},
"@media (max-width: 820px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "4",
},
},
"@media (max-width: 780px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "3",
},
},
"@media (max-width: 744px)": {
".truncate-vertical-diary-content": {
"-webkit-line-clamp": "5",
},
},
});
},
],
};
export default config;