This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtailwind.config.js
124 lines (121 loc) · 2.44 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
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
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("@tailwindcss/ui/colors");
// const plugin = require("tailwindcss/plugin");
const colorPrimary = {
100: "#e0f0fb",
200: "#c1e1f8",
300: "#a1d1f4",
400: "#82c2f1",
500: "#63b3ed",
600: "#4f8fbe",
700: "#3b6b8e",
800: "#28485f",
900: "#14242f",
};
function getColors(color, shades) {
const result = {};
shades.forEach((shade) => {
result[shade] = color[shade];
});
return result;
}
module.exports = {
purge: false,
theme: {
colors: {
...colors,
primary: getColors(
colorPrimary,
[100, 200, 300, 400, 500, 600, 700, 800, 900]
),
"code-editor": {
dark: "#002b36",
"dark-highlight": "#3e4d64",
},
hub: "#252f3f",
slack: "#371038",
"mac-window": {
close: "#ff5f56",
minimize: "#ffbd2e",
maximize: "#28c93f",
},
},
animations: {
blink: {
from: {
opacity: 1,
},
"50%": {
opacity: 0,
},
to: {
opacity: 1,
},
},
},
animationTimingFunction: {
"step-end": "step-end",
},
extend: {
scale: {
25: ".25",
},
padding: {
"2ch": "2ch",
"4ch": "4ch",
"6ch": "6ch",
"8ch": "8ch",
"10ch": "10ch",
"12ch": "12ch",
"14ch": "14ch",
},
height: {
72: "18rem",
80: "20rem",
88: "22rem",
96: "24rem",
100: "25rem",
104: "26rem",
},
maxWidth: {
"(screen-16)": "calc(100vw - 16rem)",
"(screen-34)": "calc(100vw - 34rem)",
64: "16rem",
164: "41rem",
172: "43rem",
184: "46rem",
},
minWidth: {
72: "18rem",
40: "10rem",
12: "3rem",
},
minHeight: {
108: "27rem",
},
maxHeight: {
"(screen-16)": "calc(100vh - 4rem)",
108: "27rem",
},
marginRight: {
36: "9rem",
},
fontFamily: {
mono: ["Fira Code VF", "Fira Code", ...defaultTheme.fontFamily.mono],
},
borderRadius: {
xl: "1rem",
},
zIndex: {
60: 60,
},
rotate: {
"-15": "-7deg",
},
fontSize: {
xxs: ["0.6rem", "0.6rem"],
},
},
},
plugins: [require("@tailwindcss/ui"), require("tailwindcss-animations")],
};