-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.js
87 lines (86 loc) · 1.95 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
purge: ["./public/index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
width: {
'99/100': '99%'
},
colors: {
primary: "#F78000",
"primary-hover": "#db7506",
peach: "#F4EAE1",
"peach-light": "#FFF6EF",
"peach-hover": "#FFE0B2",
brown: "#78350F",
"dark-brown": "#4E342E",
},
backgroundImage: () => ({
"selectbox-arrow": "url('assets/images/chevron-down-solid-white.svg')",
}),
backgroundPosition: {
"right-10%": "center right 10%",
},
backgroundSize: {
"10%": "10%",
},
fontSize: {
xsm: "0.6rem",
},
inset: {
"1/6": "16.666667%",
"1/12": "8.333333%",
"1/20": "5%",
"1/100": "1%",
},
spacing: {
"10/100": "10%",
"15/100": "15%",
"20/100": "20%",
"35/100": "35%",
},
},
screens: {
"bp-320": "320px",
"bp-360": "360px",
"bp-420": "420px",
"bp-500": "500px",
...defaultTheme.screens,
},
},
variantOrder: [
"first",
"last",
"odd",
"even",
"visited",
"checked",
"group-hover",
"group-focus",
"focus-within",
"hover",
"focus",
"focus-visible",
"active",
"group-disabled", // custom variant
"disabled",
],
variants: {
extend: {
// to use "disabled:opacity-50" with tailwind
opacity: ["disabled"],
pointerEvents: ["disabled"],
cursor: ["disabled", "hover"],
textColor: ["group-disabled"],
backgroundColor: ["active", "checked", "disabled"],
borderColor: ["checked"],
display: ["hover"],
strokeWidth: ["hover", "focus"],
},
},
plugins: [
require("@tailwindcss/forms"),
require("tailwindcss-interaction-variants"),
],
};