-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
85 lines (83 loc) · 2.25 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
import defaultTheme from "tailwindcss/defaultTheme";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
colors: {
primary: {
DEFAULT: "var(--primary)",
light: "var(--primary-light)",
dark: "var(--primary-dark)",
},
secondary: {
DEFAULT: "var(--secondary)",
light: "var(--secondary-light)",
dark: "var(--secondary-dark)",
},
thitiary: {
DEFAULT: "var(--thitiary)",
light: "var(--thitiary-light)",
dark: "var(--thitiary-dark)",
},
confirm: {
DEFAULT: "var(--confirm)",
light: "var(--confirm-light)",
dark: "var(--confirm-dark)",
},
alert: {
DEFAULT: "var(--alert)",
light: "var(--alert-light)",
dark: "var(--alert-dark)",
},
warning: {
DEFAULT: "var(--warning)",
light: "var(--warning-light)",
dark: "var(--warning-dark)",
},
error: {
DEFAULT: "var(--error)",
light: "var(--error-light)",
dark: "var(--error-dark)",
},
destructive: {
DEFAULT: "var(--destructive)",
light: "var(--destructive-light)",
dark: "var(--destructive-dark)",
},
background: {
DEFAULT: "var(--background)",
light: "var(--background-light)",
dark: "var(--background-dark)",
},
heading: {
DEFAULT: "var(--heading)",
light: "var(--heading-light)",
dark: "var(--heading-dark)",
},
},
},
},
plugins: [
function ({ addUtilities }) {
const newUtilities = {
".scrollbar": {
"&::-webkit-scrollbar": {
width: "12px",
},
"&::-webkit-scrollbar-track": {
background: "#f1f1f1",
},
"&::-webkit-scrollbar-thumb": {
background: "#888",
borderRadius: "10px",
},
"&::-webkit-scrollbar-thumb:hover": {
background: "#555",
},
},
};
addUtilities(newUtilities, ["responsive", "hover"]);
},
],
};