forked from DoctorKaufman/DBWebApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
80 lines (71 loc) · 2.18 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
/** @type {import('tailwindcss').Config} */
import plugin from 'tailwindcss/plugin';
export const darkMode = 'class';
export const content = [
"./templates/**/*.html",
"./app/**/*.html",
"./node_modules/flowbite/**/*.js"
];
export const theme = {
extend: {
animation: {
'gradient': 'gradient 8s linear infinite',
'blobs': 'gradient 14s linear infinite',
},
keyframes: {
'gradient': {
to: { 'background-position': '300% center' },
}
},
backgroundImage: {
'custom-gradient': 'linear-gradient(to bottom, #1f2937, #26303f, #1f2937, #26303f, #26303f, #26303f, #26303f, #1f2937, #26303f, #1f2937)',
}
},
};
export const plugins = [
require('flowbite/plugin'),
require('@tailwindcss/forms'),
plugin(function ({ addComponents, addBase, theme }) {
addComponents({
'.custom-scrollbar::-webkit-scrollbar': {
width: '5px',
height: '3px',
borderRadius: '2px',
},
'.custom-scrollbar::-webkit-scrollbar-track': {
background: theme('colors.gray.200'),
borderRadius: '50px',
},
'.custom-scrollbar::-webkit-scrollbar-thumb': {
background: theme('colors.gray.400'),
borderRadius: '50px',
},
'.custom-scrollbar::-webkit-scrollbar-thumb:hover': {
background: theme('colors.gray.500'),
},
// Dark theme scrollbar styles
'.dark .custom-scrollbar::-webkit-scrollbar-track': {
background: theme('colors.gray.800'),
},
'.dark .custom-scrollbar::-webkit-scrollbar-thumb': {
background: theme('colors.gray.500'),
},
'.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover': {
background: theme('colors.gray.400'),
},
'.dotted-line': {
// Dotted line configurations
height: '2px',
backgroundSize: '10px 2px',
backgroundRepeat: 'repeat-x',
backgroundImage: `radial-gradient(circle, ${theme('colors.gray.500')} 20%, transparent 20%)`,
},
'@media print': {
'body *, .dark': {
background: `${theme('colors.white')} !important`,
color: `${theme('colors.black')} !important`,
},
},
});
}),
];