-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
90 lines (87 loc) · 1.96 KB
/
tailwind.config.ts
File metadata and controls
90 lines (87 loc) · 1.96 KB
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
import type { Config } from "tailwindcss";
const px0_50 = Object.fromEntries(
Array.from({ length: 51 }, (_, i) => [i, `${i}px`]),
);
const px0_100 = Object.fromEntries(
Array.from({ length: 101 }, (_, i) => [i, `${i}px`]),
);
const px0_200 = Object.fromEntries(
Array.from({ length: 201 }, (_, i) => [i, `${i}px`]),
);
const px0_1920 = Object.fromEntries(
Array.from({ length: 1921 }, (_, i) => [i, `${i}px`]),
);
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
width: {
...px0_50, // 0px ~ 50px
...px0_100, // 0px ~ 100px
...px0_200, // 0px ~ 200px
...px0_1920, // 0px ~ 1920px
},
height: {
...px0_50, // 0px ~ 50px
...px0_100, // 0px ~ 100px
...px0_200, // 0px ~ 200px
...px0_1920, // 0px ~ 1920px
},
},
screens: {
tablet: "768px",
desktop: "1280px",
},
colors: {
black: {
DEFAULT: "#000000",
10: "#4B4B4B",
20: "#333236",
30: "#171717",
},
blue: {
DEFAULT: "#76A5EA",
10: "#9DD7ED",
bg: "#DBE6F7",
text: "#4981D5",
},
gray: {
DEFAULT: "#F5F5F5",
10: "#FAFAFA",
20: "#EEEEEE",
30: "#D9D9D9",
40: "#9FA6B2",
50: "#787486",
},
green: {
DEFAULT: "#7AC555",
10: "#A3C4A2",
bg: "#E7F7DB",
text: "#86D549",
},
orange: {
DEFAULT: "#FFA500",
10: "#FFC85A",
},
pink: { DEFAULT: "#E876EA", bg: "#F7DBF0" },
purple: { DEFAULT: "#760DDE", 10: "#F1EFFD" },
red: {
DEFAULT: "#D6173A",
10: "#F4D7DA",
20: "#D25B68",
},
sand: "#C4B1A2",
violet: {
10: "#F1EFFD",
20: "#5534DA",
},
white: "#ffffff",
yellow: "#FDD446",
},
},
plugins: [],
};
export default config;