-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
104 lines (99 loc) · 3.48 KB
/
tailwind.config.js
File metadata and controls
104 lines (99 loc) · 3.48 KB
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
import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
],
theme: {
extend: {
colors: {
gimysite: {
50: '#F0FDF4',
100: '#DCFCE7',
200: '#BBF7D0',
300: '#86EFAC',
400: '#4ADE80',
500: '#22C55E',
600: '#16A34A',
700: '#15803D',
800: '#166534',
900: '#14532D',
950: '#0C3D22',
},
/*
gimysite: {
50: '#eef2ff',
100: '#e0e7ff',
200: '#c7d2fe',
300: '#a5b4fc',
400: '#818cf8',
500: '#6366f1',
600: '#4f46e5',
700: '#4338ca',
800: '#3730a3',
900: '#312e81',
950: '#1e1b4b',
},
*/
},
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [
forms,
function ({ addBase, addUtilities, theme }) {
addBase({
'*': {
'scrollbar-width': 'none',
'-ms-overflow-style': 'none',
'&::-webkit-scrollbar': {
display: 'none',
},
},
'::selection': {
backgroundColor: theme('colors.gimysite.500'),
color: theme('colors.white'),
},
'.dark ::selection': {
backgroundColor: theme('colors.gimysite.300'),
color: theme('colors.gray.900'),
},
});
const gimysiteColors = theme('colors.gimysite');
const scrollbarUtilities = {};
for (const shade in gimysiteColors) {
scrollbarUtilities[`.scrollbar-gimysite-${shade}`] = {
'scrollbar-width': 'thin',
'-ms-overflow-style': 'auto',
'&::-webkit-scrollbar': {
display: 'block',
width: '8px',
height: '8px',
},
'&::-webkit-scrollbar-track': {
backgroundColor: theme('colors.gray.200'),
borderRadius: '10px',
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: gimysiteColors[shade],
borderRadius: '10px',
border: '2px solid transparent',
backgroundClip: 'content-box',
},
'@media (prefers-color-scheme: dark)': {
'&::-webkit-scrollbar-track': {
backgroundColor: theme('colors.gray.700'),
},
},
};
}
addUtilities(scrollbarUtilities, ['responsive']);
},
],
};