-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.ts
144 lines (131 loc) · 4.04 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
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: {
extend: {
fontFamily: { pretendard: ["var(--font-pretendard)"] },
colors: {
// Next.js 다크 모드 색상 조합 추가
"custom-dark-bg": "#121212",
"custom-dark-text": "#e5e7eb",
"custom-dark-accent": "#3b82f6",
"custom-purple-bg": "#5A2FBF",
// 밝은 모드 색상 조합
"custom-light-bg": "#f1f1f1",
"custom-light-text": "#3f3f3f",
"custom-light-accent": "#3b82f6",
// 텍스트 전용
"text-gray-dark": "#3f3f3f",
"text-gray-light": "#D6D6D6",
"text-gray-default": "#969696",
// primary color
"primary-purple": {
500: "#6100FF",
400: "#9747FF",
300: "#A66FFF",
200: "#C9A8FF",
100: "#E0CEFF",
50: "#F2EBFF",
light: "#FAF8FF",
},
// 드롭다운 커스텀
"custom-dropdown-dark-bg": "#242424",
"custom-dropdown-light-bg": "#f2f3f4",
"custom-dropdown-light-border": "#444444",
"custom-dropdown-option-light-bg": "#e3e1e7",
// neutral color
grayscale: {
100: "#030303",
90: "#1A1A1A",
80: "#333333",
70: "#4D4D4D",
50: "#808080",
40: "#999999",
30: "#B3B3B3",
20: "#CCCCCC",
10: "#E6E6E6",
5: "#F3F3F3",
},
// stroke & line color
"line-gray-10": "#E6E6E6",
"line-gray-5": "#F3F3F3",
"line-blue": "#99BDFF",
"line-default": "#C3C3C3",
"line-dark": "#ADADAD",
// accent color
"accent-red": "#FF6D6D",
"accent-blue": "#6DB0FF",
"accent-orange": "#FFD542",
"accent-green": "#17E0D4",
// background color
"bg-red-light": "#FFEFEF",
"bg-purple-light": "#FAF8FF",
"bg-purple-dark": "#E3E1E7",
"bg-purple-chip": "#7E5AFF",
"bg-gray-light": "#F1F1F1",
"bg-gray-dark": "#C2C2C2",
},
boxShadow: {
"custom-shadow": "0px 0px 24.8px 0px rgba(0, 0, 0, 0.25)",
"custom-dropdown-shadow": "0px 4px 12px 0px rgba(0, 0, 0, 0.08)",
},
//메인페이지 DoubleDown 애니메이션
keyframes: {
float: {
"0%, 100%": { transform: "translateY(0)" },
"50%": { transform: "translateY(-10px)" },
},
moveCircle: {
"0%, 100%": { transform: "scale(1)" },
"50%": { transform: "scale(1.2)" },
},
circleWave: {
"0%": {
width: "0",
height: "0",
},
"100%": {
width: "3856px",
height: "1136px",
},
},
spinReverse: {
to: { transform: "rotate(-360deg)" },
},
flip: {
to: { transform: "rotate(180deg)" },
},
drawCheck: {
"0%": { "stroke-dashoffset": "60" },
"100%": { "stroke-dashoffset": "0" },
},
//SecureProcessSection 무한회전 애니메이션
rotateForward: {
"0%": { transform: "translateX(0)" },
"100%": { transform: "translateX(-100%)" },
},
rotateBackward: {
"0%": { transform: "translateX(100%)" },
"100%": { transform: "translateX(0)" },
},
},
animation: {
float: "float 2.04s ease-in-out infinite",
moveCircle: "moveCircle 5s ease-in-out infinite",
circleWave: "circleWave 16s ease-in-out infinite",
spinReverse: "spinReverse 2s linear infinite",
flipHourglass: "flip 2s ease-in-out infinite",
rotateForward: "rotateForward 50s linear infinite",
rotateBackward: "rotateBackward 50s linear infinite",
drawCheck: "drawCheck 1s linear forwards",
},
},
},
plugins: [],
darkMode: "class",
};
export default config;