-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.ts
86 lines (81 loc) · 1.9 KB
/
tailwind.config.ts
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
import { useEffect, useState } from "react"
import type { Config } from "tailwindcss"
const plugin = require("tailwindcss/plugin")
const config: Config = {
content: [
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
scrollbarHide: {
"&::-webkit-scrollbar": {
display: "none",
},
"scrollbar-width": "none",
},
colors: {
primary: "var(--primary)",
primaryText: "var(--primaryText)",
primaryhover: "rgb(35 157 122)",
secondary: "var(--secondary)",
substitute: "var(--substitute)",
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
},
},
plugins: [
require("@tailwindcss/forms"),
function ({ addUtilities }) {
const newUtilities = {
".flex-center": {
display: "flex",
"align-items": "center",
"justify-content": "center",
},
".shadow": {
filter: "drop-shadow(2px 8px 4px #05050570)",
},
".flex-between": {
display: "flex",
"align-items": "center",
"justify-content": "space-between",
},
".flex-col": {
display: "flex",
"flex-direction": "column",
},
".flex-row": {
display: "flex",
"flex-direction": "row",
},
".button-hover": {
color: "#F28C28",
"border-radius": "4px",
"transition-property": "all",
"transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)",
"transition-duration": "150ms",
background: "rgb(38 38 38)",
cursor: "pointer",
},
}
addUtilities(newUtilities, ["responsive", "hover"])
},
plugin(function ({ matchUtilities, theme }) {
matchUtilities({
"col-gap": (value) => {
return {
display: "flex",
"flex-direction": "column",
gap: value,
}
},
})
}),
],
}
export default config