-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.js
More file actions
212 lines (211 loc) · 6.73 KB
/
Copy pathtailwind.config.js
File metadata and controls
212 lines (211 loc) · 6.73 KB
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
212
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
darkMode: 'class', // 다크 모드를 클래스 기반으로 설정
theme: {
extend: {
// 다크/라이트 모드를 위한 색상 시스템 정의
colors: {
// 기본 색상 팔레트 (Perplexity 스타일)
primary: {
50: '#eff6ff',
100: '#dbeafe',
200: '#bfdbfe',
300: '#93c5fd',
400: '#60a5fa',
500: '#3b82f6',
600: '#2563eb',
700: '#1d4ed8',
800: '#1e40af',
900: '#1e3a8a',
950: '#172554'
},
// 다크 모드 색상
dark: {
50: '#f8fafc',
100: '#f1f5f9',
200: '#e2e8f0',
300: '#cbd5e1',
400: '#94a3b8',
500: '#64748b',
600: '#475569',
700: '#334155',
800: '#1e293b',
900: '#0f172a',
950: '#020617'
},
// 라이트 모드 색상
light: {
50: '#020617',
100: '#0f172a',
200: '#1e293b',
300: '#334155',
400: '#475569',
500: '#64748b',
600: '#94a3b8',
700: '#cbd5e1',
800: '#e2e8f0',
900: '#f1f5f9',
950: '#f8fafc'
},
// 고대비 모드 색상 (WCAG 2.0 AAA 레벨 7:1 대비율)
// W3C 이미지 기반: 검은색 배경 + 밝은 노란색 텍스트
'high-contrast': {
50: '#ffff00', // 밝은 노란색 (텍스트용)
100: '#ffff00', // 밝은 노란색
200: '#ffff00', // 밝은 노란색
300: '#ffff00', // 밝은 노란색
400: '#ffff00', // 밝은 노란색
500: '#ffff00', // 기본 노란색 (텍스트)
600: '#0000ff', // 진한 파란색 (링크/액센트)
700: '#000000', // 검은색
800: '#000000', // 검은색
900: '#000000', // 검은색 (배경)
950: '#000000' // 검은색
}
},
// 그라데이션 색상
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
'gradient-primary': 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
'gradient-secondary': 'linear-gradient(135deg, #f093fb 0%, #f5576c 100%)'
},
// 애니메이션
animation: {
'fade-in': 'fadeIn 0.5s ease-in-out',
'slide-up': 'slideUp 0.3s ease-out',
'slide-down': 'slideDown 0.3s ease-out',
'pulse-glow': 'pulseGlow 2s ease-in-out infinite alternate',
},
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' }
},
slideUp: {
'0%': { transform: 'translateY(100%)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' }
},
slideDown: {
'0%': { transform: 'translateY(-100%)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' }
},
pulseGlow: {
'0%': { boxShadow: '0 0 20px rgba(59, 130, 246, 0.5)' },
'100%': { boxShadow: '0 0 40px rgba(59, 130, 246, 0.8)' }
}
},
// 여백 및 크기
spacing: {
'18': '4.5rem',
'88': '22rem',
'128': '32rem'
},
// 폰트 크기
fontSize: {
'2xs': ['0.625rem', { lineHeight: '0.75rem' }],
'5xl': ['3rem', { lineHeight: '1.2' }],
'6xl': ['3.75rem', { lineHeight: '1.2' }]
},
// 그림자
boxShadow: {
'soft': '0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04)',
'medium': '0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
'hard': '0 10px 40px -10px rgba(0, 0, 0, 0.2)',
'glow': '0 0 20px rgba(59, 130, 246, 0.3)',
'glow-lg': '0 0 40px rgba(59, 130, 246, 0.4)'
},
// 트랜지션
transitionDuration: {
'400': '400ms',
'600': '600ms'
}
},
},
plugins: [
// 사용자 지정 유틸리티 클래스 추가
function({ addUtilities }) {
const newUtilities = {
// 글래스모피즘 효과
'.glass': {
backdropFilter: 'blur(16px)',
backgroundColor: 'rgba(255, 255, 255, 0.1)',
border: '1px solid rgba(255, 255, 255, 0.2)'
},
'.glass-dark': {
backdropFilter: 'blur(16px)',
backgroundColor: 'rgba(0, 0, 0, 0.3)',
border: '1px solid rgba(255, 255, 255, 0.1)'
},
// 고대비 모드 전용 유틸리티 (검은색/노란색)
'.high-contrast': {
filter: 'none !important',
backdropFilter: 'none !important',
boxShadow: 'none !important',
background: '#000000 !important',
color: '#ffff00 !important',
border: '3px solid #ffff00 !important'
},
'.hc-text': {
color: '#ffff00 !important',
textShadow: 'none !important'
},
'.hc-bg': {
backgroundColor: '#000000 !important',
backgroundImage: 'none !important'
},
'.hc-bg-alt': {
backgroundColor: '#000000 !important',
backgroundImage: 'none !important'
},
'.hc-border': {
border: '3px solid #ffff00 !important',
borderRadius: '0 !important'
},
'.hc-button': {
backgroundColor: '#000000 !important',
color: '#ffff00 !important',
border: '3px solid #ffff00 !important',
borderRadius: '4px !important',
boxShadow: 'none !important',
fontWeight: 'bold !important'
},
'.hc-button:hover': {
backgroundColor: '#ffff00 !important',
color: '#000000 !important',
border: '3px solid #000000 !important'
},
'.hc-input': {
backgroundColor: '#000000 !important',
color: '#ffff00 !important',
border: '3px solid #ffff00 !important',
borderRadius: '4px !important'
},
// 사이드바 애니메이션
'.sidebar-enter': {
transform: 'translateX(-100%)',
opacity: '0'
},
'.sidebar-enter-active': {
transform: 'translateX(0)',
opacity: '1',
transition: 'all 300ms ease-in-out'
},
'.sidebar-exit': {
transform: 'translateX(0)',
opacity: '1'
},
'.sidebar-exit-active': {
transform: 'translateX(-100%)',
opacity: '0',
transition: 'all 300ms ease-in-out'
}
}
addUtilities(newUtilities)
}
],
}