-
Notifications
You must be signed in to change notification settings - Fork 17
/
tailwind.config.cjs
83 lines (78 loc) · 1.94 KB
/
tailwind.config.cjs
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
const typography = require('@tailwindcss/typography');
function scrollbarsPlugin({ addUtilities }) {
addUtilities({
'.scrollbar-white': {
'&::-webkit-scrollbar-track': {
background: 'white',
},
'&::-webkit-scrollbar-thumb': {
background: 'white',
},
},
'.scrollbar-slim': {
'&::-webkit-scrollbar': {
width: '6px',
height: '6px',
},
'&::-webkit-scrollbar-track': {
background: "theme('colors.gray.200 / 70%')",
'-webkit-border-radius': '10px',
'border-radius': '10px',
},
'&::-webkit-scrollbar-thumb': {
background: "theme('colors.gray.400 / 50%')",
'-webkit-border-radius': '10px',
'border-radius': '10px',
},
},
'.scrollbar-ultraslim': {
'&::-webkit-scrollbar': {
width: '3px',
height: '3px',
},
'&::-webkit-scrollbar-track': {
background: "theme('colors.gray.200 / 70%')",
'-webkit-border-radius': '10px',
'border-radius': '10px',
},
'&::-webkit-scrollbar-thumb': {
background: "theme('colors.gray.400 / 50%')",
'-webkit-border-radius': '10px',
'border-radius': '10px',
},
},
'.scrollbar-none': {
'-ms-overflow-style': 'none',
'scrollbar-width': 'none',
'&::-webkit-scrollbar': {
display: 'none',
},
},
'.scrollbar-default': {
'-ms-overflow-style': 'auto',
'scrollbar-width': 'auto',
'&::-webkit-scrollbar': {
display: 'block',
},
},
});
}
/** @type {import('tailwindcss').Config}*/
const config = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
screens: {
md: '880px',
ld: '1215px',
xl: '1432px',
},
transitionTimingFunction: {
'in-out':
'linear(0, 0.005, 0.02 2.2%, 0.045, 0.081 4.9%, 0.16 7.3%, 0.465 16.2%, 0.561, 0.642,0.713 25.8%, 0.773, 0.825 32.7%, 0.868 36.5%, 0.905 40.9%, 0.935 45.7%,0.958 51.1%, 0.975 57.4%, 0.986 64.4%, 0.993 73.1%, 0.997 84.1%, 0.999)',
},
},
},
plugins: [typography, scrollbarsPlugin],
};
module.exports = config;