forked from priyankarpal/projectshut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
69 lines (68 loc) · 1.69 KB
/
tailwind.config.cjs
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
// tailwind.config.js
module.exports = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
screens: {
xsm: "240px",
xs: "400px",
sm: "640px",
md: "770px",
lg: "1024px",
xl: "1280px",
},
extend: {
fontFamily: {
inter: ["Inter", "sans-serif"],
},
colors: {
primary: "#A66EFC",
secondary: "#000513",
},
padding: {
custom: "52rem", // Add your custom padding value
},
},
},
variants: {
extend: {
after: ["responsive,transform"], // Add the variants you want to enable for the after pseudo-element
fill: ["checked"],
},
},
plugins: [
function ({ addUtilities }) {
addUtilities(
{
".after-util": {
content: '""',
width: "34px",
height: "34px",
position: "absolute",
backgroundColor: "#ebebeb",
top: "4px",
left: "4px",
right: "18px",
borderRadius: "34px",
background: "linear-gradient(180deg, #777, #3a3a3a)",
transition: "0.3s",
},
},
["responsive"],
)
},
function ({ addVariant, e }) {
addVariant("checked", ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`checked${separator}${className}`)}:checked + label`
})
})
},
function ({ addVariant, e }) {
addVariant("transform", ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`transform${separator}${className}`)}:checked + label::after`
})
})
},
],
}