-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
227 lines (227 loc) · 7.67 KB
/
tailwind.config.js
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ['class'],
content: [
'../../packages/design-system/src/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
],
theme: {
extend: {
fontFamily: {
pretendard: [
'Pretendard',
'AppleGothicNedSD',
'malgun gothic',
'sans-serif',
],
},
colors: {
grey: {
DEFAULT: '#9FA9B9',
normal: '#9FA9B9',
'normal-hover': '#8F98A7',
'normal-active': '#718794',
light: '#F5F6F8',
'light-hover': '#F1F2F5',
'light-active': '#E1E4E9',
dark: '#777F8B',
'dark-hover': '#5F656F',
'dark-active': '#484C53',
darker: '#383B41',
},
red: {
DEFAULT: '#FF3E3E',
normal: '#FF3E3E',
'normal-hover': '#E63838',
'normal-active': '#CC3232',
light: '#FFECEC',
'light-hover': '#FFE2E2',
'light-active': '#FFC3C3',
dark: '#BF2F2F',
'dark-hover': '#992525',
'dark-active': '#731C1C',
darker: '#591616',
},
blue: {
DEFAULT: '#3E6FFF',
normal: '#3E6FFF',
'normal-hover': '#3864E6',
'normal-active': '#3259CC',
light: '#ECF1FF',
'light-hover': '#E2E9FF',
'light-active': '#C3D2FF',
dark: '#2F53BF',
'dark-hover': '#254399',
'dark-active': '#1C3273',
darker: '#162759',
},
green: {
DEFAULT: '#00A991',
normal: '#00A991',
'normal-hover': '#009883',
'normal-active': '#008774',
light: '#E6F6F4',
'light-hover': '#D9F2EF',
'light-active': '#B0E4DD',
dark: '#007F6D',
'dark-hover': '#006557',
'dark-active': '#004C41',
darker: '#003B33',
},
yellow: {
DEFAULT: '#DDC700',
normal: '#DDC700',
'normal-hover': '#C7B300',
'normal-active': '#B19F00',
light: '#FCF9E6',
'light-hover': '#FAF7D9',
'light-active': '#F4EEB0',
dark: '#A69500',
'dark-hover': '#857700',
'dark-active': '#635A00',
darker: '#4D4600',
},
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))',
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))',
},
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
chart: {
1: 'hsl(var(--chart-1))',
2: 'hsl(var(--chart-2))',
3: 'hsl(var(--chart-3))',
4: 'hsl(var(--chart-4))',
5: 'hsl(var(--chart-5))',
},
},
fontSize: {
// medium이 DEFAULT 값 (없을 경우 bold)
40: {
DEFAULT: ['40px', { lineHeight: '150%', fontWeight: 700 }],
bold: ['40px', { lineHeight: '150%', fontWeight: 700 }],
semibold: ['40px', { lineHeight: '150%', fontWeight: 600 }],
},
30: {
DEFAULT: ['30px', { lineHeight: '150%', fontWeight: 700 }],
bold: ['30px', { lineHeight: '150%', fontWeight: 700 }],
semibold: ['30px', { lineHeight: '150%', fontWeight: 600 }],
},
26: {
DEFAULT: ['26px', { lineHeight: '150%', fontWeight: 700 }],
bold: ['26px', { lineHeight: '150%', fontWeight: 700 }],
semibold: ['26px', { lineHeight: '150%', fontWeight: 600 }],
},
22: {
DEFAULT: ['22px', { lineHeight: '150%', fontWeight: 500 }],
bold: ['22px', { lineHeight: '150%', fontWeight: 700 }],
semibold: ['22px', { lineHeight: '150%', fontWeight: 600 }],
medium: ['22px', { lineHeight: '150%', fontWeight: 500 }],
},
18: {
DEFAULT: ['18px', { lineHeight: '150%', fontWeight: 500 }],
bold: ['18px', { lineHeight: '150%', fontWeight: 700 }],
semibold: ['18px', { lineHeight: '150%', fontWeight: 600 }],
medium: ['18px', { lineHeight: '150%', fontWeight: 500 }],
},
16: {
DEFAULT: ['16px', { lineHeight: '150%', fontWeight: 500 }],
bold: ['16px', { lineHeight: '150%', fontWeight: 700 }],
semibold: ['16px', { lineHeight: '150%', fontWeight: 600 }],
medium: ['16px', { lineHeight: '150%', fontWeight: 500 }],
},
15: {
DEFAULT: ['15px', { lineHeight: '150%', fontWeight: 500 }],
semibold: ['15px', { lineHeight: '150%', fontWeight: 600 }],
medium: ['15px', { lineHeight: '150%', fontWeight: 500 }],
regular: ['15px', { lineHeight: '150%', fontWeight: 400 }],
},
14: {
DEFAULT: ['14px', { lineHeight: '150%', fontWeight: 500 }],
semibold: ['14px', { lineHeight: '140%', fontWeight: 600 }],
medium: ['14px', { lineHeight: '150%', fontWeight: 500 }],
regular: ['14px', { lineHeight: '150%', fontWeight: 400 }],
},
13: {
DEFAULT: ['14px', { lineHeight: '140%', fontWeight: 500 }],
semibold: ['14px', { lineHeight: '140%', fontWeight: 600 }],
medium: ['14px', { lineHeight: '140%', fontWeight: 500 }],
'regular-150': ['14px', { lineHeight: '150%', fontWeight: 400 }],
'regular-140': ['14px', { lineHeight: '140%', fontWeight: 400 }],
},
12: {
DEFAULT: ['12px', { lineHeight: '150%', fontWeight: 500 }],
semibold: ['12px', { lineHeight: '150%', fontWeight: 600 }],
medium: ['12px', { lineHeight: '150%', fontWeight: 500 }],
regular: ['12px', { lineHeight: '150%', fontWeight: 400 }],
},
11: {
DEFAULT: ['11px', { lineHeight: '150%', fontWeight: 500 }],
semibold: ['11px', { lineHeight: '150%', fontWeight: 600 }],
medium: ['11px', { lineHeight: '150%', fontWeight: 500 }],
regular: ['11px', { lineHeight: '150%', fontWeight: 400 }],
},
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
screens: {
xs: '580px',
sm: '760px',
md: '984px',
lg: '1344px',
xl: '1500px',
},
width: {
'screen-sm': '715px',
'screen-md': '940px',
'screen-lg': '1300px',
'screen-xl': '1464px',
},
keyframes: {
popup: {
'0%': { opacity: 0, transform: 'scale(0.8)' },
'100%': { opacity: 1, transform: 'scale(1)' },
},
popout: {
'0%': { opacity: 1, transform: 'scale(1)' },
'100%': { opacity: 0, transform: 'scale(0.8)' },
},
},
animation: {
popup: 'popup 0.3s ease-in-out',
popout: 'popout 0.3s ease-in-out forwards',
},
},
},
plugins: [require('tailwindcss-animate')],
};