-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
96 lines (95 loc) · 2.38 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
93
94
95
96
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
fontFamily: {
Pretendard: ["Pretendard"]
},
backgroundImage: {
ranked: "url('/src/assets/Ranked.svg')"
},
screens: {
"2sm": "450px",
"2xl": "1440px",
"2md": "1080px",
"2xs": "400px"
},
boxShadow: {
"top-sm": "0 -1px 2px 0 rgba(0, 0, 0, 0.05)",
top: "0 -1px 3px 0 rgba(0, 0, 0, 0.1), 0 -1px 2px -1px rgba(0, 0, 0, 0.1)",
"top-md": "0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -2px rgba(0, 0, 0, 0.1)",
"top-lg": "0 -10px 15px -3px rgba(0, 0, 0, 0.1), 0 -4px 6px -4px rgba(0, 0, 0, 0.1)",
"top-xl": "0 -20px 25px -5px rgba(0, 0, 0, 0.1), 0 -8px 10px -6px rgba(0, 0, 0, 0.1)"
}
},
colors: {
primary: "#8889FF",
secondary: "#6668FF",
white: {
pure: "#FFFFFF",
sub: "#F6F7FF"
},
black: "#1E1E1E",
gray: "#8C8C8C",
lightgray: "#CCCCCC",
pink: "#FF7C7A",
purple: "#8469E3",
lightpurple: "#D8D8FF",
skyblue: "#50C6E1",
lightgreen: "#44CF86",
yellow: "#EEDD60",
lightyellow: "#FFF8C9",
red: "#ff3333"
},
borderRadius: {
none: "0",
sm: "4px",
DEFAULT: "8px",
lg: "10px",
full: "50%"
},
fontSize: {
10: "0.625rem",
12: "0.75rem",
14: "0.875rem",
16: "1rem",
20: "1.25rem",
24: "1.5rem",
28: "1.75rem"
},
boxShadow: {
DEFAULT: "0px 4px 4px 0px rgba(0, 0, 0, 0.15)"
},
maxWidth: {
DEFAULT: "1440px",
sm: "768px"
}
},
plugins: [
({ addUtilities }) => {
addUtilities({
".flex-center": {
"@apply flex justify-center items-center": ""
}
});
},
require("tailwind-scrollbar-hide"),
({ addComponents }) => {
addComponents({
".primary-btn": {
"@apply bg-primary w-full rounded p-6 text-white-pure hover:opacity-80": ""
},
".lightgray-btn": {
"@apply bg-lightgray w-full rounded p-6 text-black hover:opacity-80": ""
},
".gray-btn": {
"@apply bg-gray w-full rounded p-6 text-black": ""
},
".text-btn": {
"@apply text-gray hover:underline": ""
}
});
}
]
};