-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
52 lines (48 loc) · 1.17 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
const colors = require("tailwindcss/colors");
const plugin = require("tailwindcss/plugin");
const forms = require("@tailwindcss/forms");
const utils = plugin(({ addUtilities }) => {
addUtilities({
".clickable": {
"touch-action": "manipulation",
"-webkit-tap-highlight-color": "transparent",
"user-select": "none",
cursor: "pointer"
},
".placeholder-select-none::placeholder": {
"user-select": "none"
},
".no-arrow::-webkit-calendar-picker-indicator": {
display: "none"
},
".no-arrow::-webkit-list-button": {
display: "none"
}
});
});
const forcedColors = plugin(({ addVariant }) => {
addVariant("forced-colors", "@media (forced-colors: active)");
});
module.exports = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "media",
theme: {
extend: {
borderRadius: {
"4xl": "2rem"
},
boxShadow: {
smooth: "0px 4px 32px rgba(0, 0, 0, 0.07);"
},
colors: {
primary: colors.indigo,
secondary: colors.slate,
danger: colors.rose
}
}
},
variants: {
extend: {}
},
plugins: [forms, utils, forcedColors]
};