forked from connection-2023/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
109 lines (104 loc) · 2.86 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
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}',
],
safelist: [
'hover:bg-main-color-transparent',
'accent-main-color',
'grid-cols-4',
],
theme: {
extend: {
colors: {
'main-color': 'var(--main-color)',
'main-color-transparent': 'var(--main-color-transparent)',
'sub-color1': 'var(--sub-color1)',
'sub-color1-transparent': 'var(--sub-color1-transparent)',
'sub-color2': 'var(--sub-color2)',
'sub-color2-transparent': 'var(--sub-color2-transparent)',
'sub-color3': 'var(--sub-color3)',
'sub-color3-transparent': 'var(--sub-color3-transparent)',
'sub-color4': 'var(--sub-color4)',
'sub-color4-transparent': 'var(--sub-color4-transparent)',
naver: '#03C75A',
kakao: '#FEE500',
gray: {
100: 'var(--gray1)',
300: 'var(--gray2)',
500: 'var(--gray3)',
700: 'var(--gray4)',
900: 'var(--gray5)',
},
},
backgroundImage: {
'checkout-receipt': "url('/images/receipt-background.svg')",
request: "url('/images/requestBox.svg')",
},
borderRadius: {
md: '0.31rem',
lg: '0.63rem',
},
maxWidth: {
tablet: 'var(--max-tablet)',
desktop: 'var(--max-desktop)',
},
screens: {
xl: '1300px',
},
boxShadow: {
vertical: '0px 1px 4px 1px rgba(0, 0, 0, 0.25)',
horizontal: '1px 1px 4px 1px rgba(0, 0, 0, 0.25)',
float: '0px 1px 4px 0 rgba(0, 0, 0, 0.25)',
},
zIndex: {
header: '30',
modal: '50',
chat: '60',
},
animation: {
vibration: 'vibration 0.1s 20',
'slow-bounce': 'bounce 1s infinite',
},
keyframes: {
vibration: {
'0%': { transform: 'rotate(1deg)' },
'100%': { transform: 'rotate(-1deg)' },
},
bounce: {
'0%, 100%': {
transform: 'translateY(-10%)',
animationTimingFunction: 'cubic-bezier(0.8,0,1,1)',
},
'50%': {
transform: 'none',
animationTimingFunction: 'cubic-bezier(0,0,0.2,1)',
},
},
},
},
},
plugins: [
require('tailwind-scrollbar')({ nocompatible: true }),
function ({
addUtilities,
}: {
addUtilities: (
utilities: Record<string, Record<string, string>>,
variants?: Array<string>,
) => void;
}) {
const newUtilities = {
'.shrink': {
animationName: 'shrink',
animationTimingFunction: 'linear',
animationDuration: '10s',
},
};
addUtilities(newUtilities);
},
],
};
export default config;