-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.ts
133 lines (129 loc) · 2.71 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import type { Config } from "tailwindcss";
const range = (start: number, end: number) => {
let arr = [];
let length = end - start;
for (let i = 0; i <= length; i++) {
arr[i] = start;
start++;
}
return arr;
};
type Accum = {
[key: string]: string;
};
const accum: Accum = range(0, 1600).reduce((acc, px) => {
acc[`${px}`] = `${px / 10}rem`;
return acc;
}, {} as Accum);
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./utils/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
spacing: {
...accum,
},
colors: {
primary: "#E26521",
star: "#FFB800",
white: "#FFF",
naver: "#2bd400",
kakao: "#FEE500",
gray: {
10: "#F3F3F3",
20: "#E6E6E6",
30: "#B3B3B3",
40: "#7D7D7D",
50: "#4D4D4D",
60: "#333",
},
black: "#030303",
error: "#FF5B56",
},
fontSize: {
8: "0.8rem",
10: "1rem",
12: "1.2rem",
11: "1.1rem",
14: "1.4rem",
16: "1.6rem",
18: "1.8rem",
20: "2rem",
24: "2.4rem",
28: "2.8rem",
32: "3.2rem",
36: "3.6rem",
45: "4.5rem",
60: "6rem",
100: "10rem",
},
lineHeight: {
12: "1.2rem",
15: "1.5rem",
18: "1.8rem",
20: "2rem",
21: "2.1rem",
24: "2.4rem",
27: "2.7rem",
28: "2.8rem",
30: "3rem",
36: "3.6rem",
42: "4.2rem",
48: "4.8rem",
54: "5.4rem",
67.5: "6.75rem",
70: "7rem",
},
fontFamily: {
sans: ["Pretendard"],
},
fontWeight: {
regular: "400",
medium: "500",
semiBold: "600",
bold: "700",
},
borderRadius: {
5: "0.5rem",
10: "1rem",
20: "2rem",
30: "3rem",
50: "5rem",
100: "10rem",
full: "1000rem",
},
boxShadow: {
main: "0px 4px 10px 0px rgba(0, 0, 0, 0.10)",
},
screens: {
maxDesktop: { max: "1440px" },
maxLaptop: { max: "1200px" },
maxTablet: { max: "768px" },
maxMobile: { max: "360px" },
mobile: "360px",
tablet: "768px",
laptop: "1200px",
desktop: "1440px",
},
extend: {
animation: {
marquee: "marquee 50s linear infinite",
marquee2: "marquee2 50s linear infinite",
},
keyframes: {
marquee: {
"0%": { transform: "translateX(0%)" },
"100%": { transform: "translateX(-100%)" },
},
marquee2: {
"0%": { transform: "translateX(100%)" },
"100%": { transform: "translateX(0%)" },
},
},
},
},
plugins: [require("tailwind-scrollbar-hide")],
};
export default config;