-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
89 lines (87 loc) · 2.86 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
module.exports = {
content: ["./app/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}", "./views/**/*.{js,ts,jsx,tsx}"],
theme: {
fontFamily: {
serif: ["Overpass"],
sans: ["Overpass"]
},
extend: {
borderRadius: {
DEFAULT: "12px"
},
colors: {
error: "#e00000",
gray: {
300: "#EAEAEA",
500: "#AAAAAA",
700: "#818085"
},
projects: {
be: "#000000",
gcn: { 500: "#027ef9", 700: "#010921" },
ink: "#f4df4f",
sh: "#46beab",
cc: "#41b6e6"
}
},
transitionTimingFunction: {
DEFAULT: "cubic-bezier(0.35, 0, 0.65, 1)"
},
transitionDuration: {
DEFAULT: "0.15s"
},
boxShadow: {
"default": "0px 0px 3px rgba(0, 10, 35, 0.35)",
"image": "0px 8px 12px 2px rgba(0, 10, 35, 0.2)",
"modal": "0px 0px 12px 0px rgba(0, 10, 35, 0.35)",
"error": "0px 0px 12px 0px rgba(181, 5, 5, 1)",
"popup": "0px 2px 6px 2px rgba(170, 170, 170, 0.2)",
"gcn": "0px 0px 6px 2px rgba(2, 126, 249, 1)",
"gcnInset": "inset 0px 0px 6px 2px rgba(2, 126, 249, 1)",
"be": "0px 0px 6px 2px rgba(150, 150, 150, 1)",
"sh": "0px 0px 12px 0px rgba(200, 200, 200, 1)",
"inset": "inset 0px 0px 12px 4px rgb(0 0 0 / 0.1)",
"mobile-modal": "0px -4px 12px 4px rgba(127, 127, 127, 0.2)"
},
gridTemplateRows: {
15: "repeat(15, minmax(0, 1fr))"
},
maxHeight: {
"screen-1/2": "calc(100vh / 2)"
},
maxWidth: {
"screen-1/2": "calc(100vw / 2)"
},
minHeight: { "screen-1/2": "calc(100vh / 2)" }
}
},
variants: { fill: ["hover", "focus"] },
plugins: [
require("tailwind-scrollbar-hide"),
require("tailwindcss-safe-area"),
function ({ addUtilities, theme }) {
const newUtilities = {};
newUtilities[`.background-gcn`] = { background: "linear-gradient(90deg, rgba(2, 126, 249, 1) 0%, rgba(3, 160, 252, 1) 33%, rgba(2, 166, 251, 1) 66%, rgba(3, 220, 251, 1) 100%)" };
newUtilities[`.background-experimental`] = { backgroundImage: "linear-gradient(120deg, rgb(255, 130, 91), rgb(232, 92, 186), rgb(184, 76, 220))" };
newUtilities[`.background-blue-gradient`] = { backgroundImage: "linear-gradient(150deg, rgba(37,249,245,1), rgba(8,70,218,1))" };
newUtilities[`.background-purple-gradient`] = { backgroundImage: "linear-gradient(150deg, #ea38ff, #702bfc)" };
newUtilities[`.bg-inherit`] = { background: "inherit" };
const colors = theme("colors");
Object.keys(colors).forEach((color) => {
const colorData = colors[color];
if (typeof colorData === "string") {
newUtilities[`.focus-outline-${color}`] = {
boxShadow: `0 0 0 2px ${colorData}`
};
} else {
Object.keys(colorData).forEach((colorVariation) => {
newUtilities[`.focus-${color}-${colorVariation}`] = {
boxShadow: `0 0 0 2px ${colorData[colorVariation]}`
};
});
}
});
addUtilities(newUtilities, { variants: ["focus", "hover"] });
}
]
};