-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtailwind.config.js
76 lines (73 loc) · 1.8 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
const _ = require("lodash");
module.exports = {
purge: false,
theme: {
extend: {
boxShadow: {
double: "0 0 0 5px hsl(336.3, 78%, 42.8%)",
},
colors: {
primary: "hsl(339.6, 82.2%, 51.6%)",
secondary: "hsl(35.8, 100%, 50%)",
tertiary: "hsl(336.3, 78%, 42.8%)",
"tertiary-light": "hsl(335.9, 80.2%, 64.1%)",
link: "hsl(250, 100%, 40%)",
"link-light": "hsl(249.8, 100%, 81%)",
dark: "hsl(0, 0%, 12.9%)",
transparent: "hsla(0, 0%, 100%, 0.1)",
},
height: {
"150-px": "150px",
"200-px": "200px",
"300-px": "300px",
},
inset: {
"1/2": "50%",
},
maxWidth: {
"150-px": "150px",
"200-px": "200px",
"300-px": "300px",
},
minHeight: {
"700-px": "700px",
"800-px": "800px",
},
padding: {
80: "20rem",
},
width: {
"90vw": "90vw",
},
},
gradientsFourSteps: (theme) => ({
full: [
theme("colors.tertiary"),
theme("colors.primary"),
theme("colors.secondary"),
theme("colors.tertiary"),
],
}),
},
variants: {
backgroundColor: ["dark"],
borderColor: ["dark"],
textColor: ["dark"],
},
plugins: [
require("tailwindcss-dark-mode")(),
require("tailwindcss-pseudo-elements"),
function ({ addUtilities, e, theme }) {
const gradients = theme("gradientsFourSteps", {});
const utilities = _.map(
gradients,
([start, betweenStart, betweenEnd, end], name) => ({
[`.bg-gradient-${e(name)}`]: {
backgroundImage: `linear-gradient(-135deg, ${start}, ${betweenStart}, ${betweenEnd}, ${end})`,
},
})
);
addUtilities(utilities);
},
],
};