-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.ts
97 lines (94 loc) · 2.32 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
import type { Config } from 'tailwindcss';
const createPxEntries = (size: number) => {
return {
0: '0',
...Array.from(Array(size + 1)).reduce((accumulator, _, i) => {
return { ...accumulator, [`${i * 4}`]: `${i * 4}px` };
}),
};
};
const PX_ENTRIES = createPxEntries(500);
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./hooks/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
spacing: PX_ENTRIES,
screens: {
md: { max: '767px' },
},
zIndex: {
base: '1',
nav: '2',
popup: '999',
floating: '1000',
},
fontSize: {
12: '1.2rem',
14: '1.4rem',
16: '1.6rem',
18: '1.8rem',
20: '2.0rem',
24: '2.4rem',
28: '2.8rem',
32: '3.2rem',
},
fontWeight: {
400: '400',
500: '500',
600: '600',
700: '700',
800: '800',
},
fontFamily: {
sans: ['Pretendard', 'Arial'],
},
borderRadius: {
none: '0px',
4: '0.4rem',
8: '0.8rem',
10: '1rem',
12: '1.2rem',
16: '1.6rem',
24: '2.4rem',
full: '9999px',
},
colors: {
transparent: 'transparent',
white: 'rgb(var(--white) / <alpha-value>)',
black: 'rgb(var(--black) / <alpha-value>)',
gray: {
100: 'rgb(var(--gray-100) / <alpha-value>)',
200: 'rgb(var(--gray-200) / <alpha-value>)',
300: 'rgb(var(--gray-300) / <alpha-value>)',
400: 'rgb(var(--gray-400) / <alpha-value>)',
},
red: 'rgb(var(--red) / <alpha-value>)',
green: {
DEFAULT: 'rgb(var(--green) / <alpha-value>)',
light: 'rgb(var(--green-light) / <alpha-value>)',
},
},
extend: {
keyframes: {
slideUp: {
'0%': { opacity: '0', transform: 'translateY(50%)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
slideDown: {
'0%': { opacity: '0', transform: 'translateY(-50%)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
},
animation: {
slideUp: 'slideUp 0.1s ease-in-out',
slideDown: 'slideDown 0.15s ease-in-out',
},
},
},
plugins: [require('tailwind-scrollbar-hide')],
};
export default config;