-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
92 lines (91 loc) ยท 3.29 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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,jsx,ts,tsx}'],
theme: {
extend: {
colors: {
primary: '#D1D5DB',
sample: {
blue: '#22B8EF',
gray: '#F5F3F1',
black: '#5C5C5C',
hoverblue: '#1882A8',
textgray: '#C3C3C3',
select: '#22ABEF'
}
},
maxWidth: {
DEFAULT: '768px'
},
keyframes: {
fadeIn: {
'0%': { opacity: '0', transform: 'translateY(-20px)' },
'100%': { opacity: '1', transform: 'translateY(0)' }
},
'toast-slide-in': {
'0%': { opacity: '0', transform: 'translateY(-20px)' },
'10%': { opacity: '1', transform: 'translateY(0)' },
'90%': { opacity: '1', transform: 'translateY(0)' },
'100%': { opacity: '0', transform: 'translateY(-20px)' }
}
},
animation: {
fadeIn: 'fadeIn 2s ease forwards',
'toast-slide-in': 'toast-slide-in 2s ease forwards'
},
fontFamily: {
sans: [
'Pretendard',
'-apple-system',
'BlinkMacSystemFont',
'system-ui',
'Roboto',
'sans-serif'
]
},
fontSize: {
display: ['28px', { lineHeight: '1.3' }], // ํฐ ์ ๋ชฉ์ฉ
title1: ['24px', { lineHeight: '1.4' }], // ์ฃผ์ ์ ๋ชฉ
title2: ['20px', { lineHeight: '1.45' }], // ์ค๊ฐ ์ ๋ชฉ
title3: ['18px', { lineHeight: '1.5' }], // ์์ ์ ๋ชฉ
body1: ['16px', { lineHeight: '1.6' }], // ๋ณธ๋ฌธ ํ
์คํธ
body2: ['15px', { lineHeight: '1.6' }], // ๋ณด์กฐ ๋ณธ๋ฌธ
caption: ['13px', { lineHeight: '1.4' }], // ์บก์
, ๋ถ๊ฐ์ค๋ช
small: ['12px', { lineHeight: '1.4' }] // ๋งค์ฐ ์์ ํ
์คํธ
},
fontWeight: {
thin: '100', // font-thin
light: '300', // font-light
normal: '400', // font-normal
medium: '500', // font-medium
semibold: '600', // font-semibold
bold: '700', // font-bold
extrabold: '800' // font-extrabold
}
}
},
plugins: [
require('tailwindcss-animated'),
({ addUtilities }) => {
addUtilities({
'.flex-center': {
'@apply flex justify-center items-center': ''
}
});
},
({ addComponents }) => {
addComponents({
'.btn-base': {
'@apply bg-primary w-full rounded p-6 text-black hover:opacity-80':
''
},
'.text-btn': {
'@apply text-black hover:underline': ''
},
'.keyword-tag': {
'@apply bg-primary rounded-2xl p-2': ''
}
});
}
]
};