-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
123 lines (121 loc) · 3.99 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import form from "@tailwindcss/forms";
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./resources/**/*.{blade.php,vue,js}",
"./resources/**/*.blade.php",
"./resources/**/*.js",
"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
"./storage/framework/views/*.php",
"./resources/views/**/*.blade.php",
"./resources/js/**/*.vue",
"./resources/js/**/*.js",
],
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
zIndex: {
"-1": "-1",
},
flexGrow: {
5: "5",
},
maxHeight: {
"screen-menu": "calc(100vh - 3.5rem)",
modal: "calc(100vh - 160px)",
},
transitionProperty: {
position: "right, left, top, bottom, margin, padding",
textColor: "color",
},
keyframes: {
"fade-out": {
from: { opacity: 1 },
to: { opacity: 0 },
},
"fade-in": {
from: { opacity: 0 },
to: { opacity: 1 },
},
},
animation: {
"fade-out": "fade-out 250ms ease-in-out",
"fade-in": "fade-in 250ms ease-in-out",
},
},
colors: {
primaryColor: "#3CB72B",
hoverPrimary: "#40c057",
textColor: "#292C2B",
"text-grey": "#454545",
colorBorder: "#4a514e",
"slate-200": "#B4B4B3",
"slate-300": "#3C4048",
"gray-400": "#3C4048",
white: "#ffffff",
teal: "#3CB72B",
"teal-dark": "#38E54D",
dark: "#272829",
grey: "#F6F5F5",
"border-secondary": "#B5C0D0",
"white-50": "#F1EFEF",
"merah-1": "#ffe3e3",
"merah-2": "#fa5252",
"merah-3": "#ffa8a8",
"hijau-1": "#d3f9d8",
"hijau-3": "#8ce99a",
},
fontFamily: {
inter: ["Inter"],
poppins: ["Poppins"],
},
asideScrollbars: {
light: "light",
gray: "gray",
},
},
daisyui: {
themes: [
{
mytheme: {
primary: "#40c057",
error: "#F9989F",
},
},
],
},
plugins: [
require("daisyui"),
require("@tailwindcss/forms"),
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
"aside-scrollbars": (value) => {
const track = value === "light" ? "100" : "900";
const thumb = value === "light" ? "300" : "600";
const color = value === "light" ? "gray" : value;
return {
scrollbarWidth: "thin",
scrollbarColor: `${theme(`colors.${color}.${thumb}`)} ${theme(
`colors.${color}.${track}`
)}`,
"&::-webkit-scrollbar": {
width: "8px",
height: "8px",
},
"&::-webkit-scrollbar-track": {
backgroundColor: theme(`colors.${color}.${track}`),
},
"&::-webkit-scrollbar-thumb": {
borderRadius: "0.25rem",
backgroundColor: theme(`colors.${color}.${thumb}`),
},
};
},
},
{ values: theme("asideScrollbars") }
);
}),
],
};