-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
63 lines (62 loc) · 1.46 KB
/
index.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
const plugin = require("tailwindcss/plugin")
/** @type {import('tailwindcss').Config} */
export default {
theme: {
screens: {
"2xl": { max: "1535px" },
xl: { max: "1279px" },
lg: { max: "1023px" },
md: { max: "767px" },
sm: { max: "639px" },
},
container: {
center: true,
padding: {
DEFAULT: "1rem",
lg: "2rem",
xl: "2rem",
"2xl": "2rem",
},
screens: {
sm: "100%",
md: "100%",
lg: "100%",
xl: "100%",
"2xl": "1400px",
},
},
},
plugins: [
plugin(function ({ addUtilities }) {
addUtilities(
{
".place-center": {
"align-items": "center",
"justify-content": "center",
},
".place-between": {
"align-items": "center",
"justify-content": "space-between",
},
".scrollbar-hide": {
"-ms-overflow-style": "none",
"scrollbar-width": "none",
"&::-webkit-scrollbar": { display: "none" },
},
".scrollbar-default": {
"-ms-overflow-style": "auto",
"scrollbar-width": "auto",
"&::-webkit-scrollbar": { display: "block" },
},
},
["responsive"]
)
}),
plugin(function ({ addVariant }) {
addVariant("link", "& a")
}),
plugin(function ({ addVariant }) {
addVariant("icon", "& .icon")
}),
],
}