-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
executable file
·57 lines (56 loc) · 1.49 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
const { colors } = require("tailwindcss/defaultTheme");
module.exports = {
purge: ["./index.html", "./src/**/*.vue"],
future: {
removeDeprecatedGapUtilities: true,
},
experimental: {
applyComplexClasses: true,
shadowLookup: true,
},
theme: {
extend: {
colors: {
...colors,
gray: {
100: "#f5f5f5",
200: "#eeeeee",
300: "#e0e0e0",
400: "#bdbdbd",
500: "#939393",
600: "#676767",
700: "#444444",
800: "#343434",
900: "#171717",
},
},
},
customForms: (theme) => ({
default: {
"select, input": {
backgroundColor: theme("colors.gray.400"),
borderColor: theme("colors.gray.500"),
borderWidth: theme("borderWidth.2"),
color: theme("colors.gray.800"),
iconColor: theme("colors.gray.800"),
"&:focus": {
backgroundColor: theme("colors.gray.200"),
borderColor: theme("colors.blue.400"),
},
},
checkbox: {
width: theme("spacing.6"),
height: theme("spacing.6"),
},
},
}),
},
variants: {
opacity: ["responsive", "hover", "focus", "disabled"],
cursor: ["responsive", "disabled"],
fill: ["responsive", "hover", "focus"],
borderWidth: ["responsive", "last", "hover", "focus"],
backgroundColor: ["responsive", "hover", "focus", "odd"],
},
plugins: [require("@tailwindcss/custom-forms")],
};