-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtailwind.config.js
42 lines (41 loc) · 1.03 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
const namedGroup = name => (name ? `group-${name}` : "group");
const generateGroupHover = ({ e, sep, className }) => name =>
`.${e(namedGroup(name))}:hover .${e(
`${namedGroup(name)}-hover${sep}${className}`,
)}`;
const namedGroupHover = ({ addVariant, e, theme }) =>
addVariant("named-group-hover", ({ modifySelectors, separator: sep }) =>
modifySelectors(({ className }) =>
["", ...theme("namedGroupHover.groups", [])]
.map(generateGroupHover({ e, sep, className }))
.join(", "),
),
);
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
purge: [
"./src/**/*.tsx",
"./src/**/*.vue",
"./src/**/*.ts",
"./examples/**/*.tsx",
"./examples/**/*.vue",
],
prefix: "pl-",
theme: {
extend: {
zIndex: {
info: "99999",
},
},
namedGroupHover: {
groups: ["l", "s", "r"],
},
},
variants: {
display: ["responsive", "group-hover", "named-group-hover"],
},
plugins: [namedGroupHover],
};