-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.ts
98 lines (94 loc) ยท 2.66 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
import type { Config } from 'tailwindcss';
import type { PluginAPI } from 'tailwindcss/types/config';
import tailwindcssAnimated from 'tailwindcss-animated';
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}',
'./src/utils/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
screens: {
xs: {
min: '480px',
},
},
keyframes: {
'shake-horizontal': {
'0%, 100%': { transform: 'translateX(0)' },
'10%, 30%, 50%, 70%': { transform: 'translateX(-10px)' },
'20%, 40%, 60%': { transform: 'translateX(10px)' },
'80%': { transform: 'translateX(8px)' },
'90%': { transform: 'translateX(-8px)' },
},
},
animation: {
shake:
'shake-horizontal var(--tw-animate-duration, 1s) cubic-bezier(0.455, 0.030, 0.515, 0.955) var(--tw-animate-delay, 0s) both',
},
backdropBlur: {
xs: '1px',
},
boxShadow: {
'lg-x':
'10px 0 15px -3px rgba(0, 0, 0, 0.03), -10px 0 15px -3px rgba(0, 0, 0, 0.03)',
'lg-left':
'-10px 0 15px -3px rgb(0 0 0 / 0.03), -4px 0 6px -4px rgb(0 0 0 / 0.03)',
'lg-right':
'10px 0 15px -3px rgb(0 0 0 / 0.03), 4px 0 6px -4px rgb(0 0 0 / 0.03)',
'lg-top':
'0 -10px 15px -3px rgb(0 0 0 / 0.03), 0 -4px 6px -4px rgb(0 0 0 / 0.02)',
},
zIndex: {
'global-loading': '35',
},
colors: {
'naver-green': '#03C75A',
'kakao-yellow': '#FEE500',
sky: {
50: '#E6EDFB',
500: '#0090FF',
},
background: 'var(--background)',
foreground: 'var(--foreground)',
primary: '#F0C160',
},
fontFamily: {
pretendard: ['var(--font-pretendard)'],
bmdohyeon: ['var(--font-bmdohyeon)'],
},
spacing: {
'14.4': '3.6rem',
'17': '4.25rem',
cdvh: 'var(--viewport-height)',
cdch: 'var(--content-height)',
},
},
},
plugins: [
({ addUtilities }: PluginAPI) => {
const utilities = {
'.hide-scrollbar': {
'scrollbar-width': 'none',
'-ms-overflow-style': 'none',
},
'.hide-scrollbar::-webkit-scrollbar': {
display: 'none',
},
'.flex-center': {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
},
};
addUtilities(utilities, {
respectPrefix: true,
respectImportant: true,
});
},
tailwindcssAnimated,
],
};
export default config;