Skip to content

Commit 6338e1c

Browse files
committed
feat: Configure tailwind-scrollbar plugin and theme
1 parent af8385e commit 6338e1c

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/tailwind.config.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,27 @@ module.exports = {
1515
],
1616
theme: {
1717
extend: {},
18+
scrollbar: theme => ({
19+
DEFAULT: {
20+
size: theme('spacing.3'),
21+
track: {
22+
background: theme('colors.gray.100'),
23+
darkBackground: theme('colors.neutral.700'),
24+
},
25+
thumb: {
26+
background: theme('colors.gray.400'),
27+
darkBackground: theme('colors.neutral.500'),
28+
borderRadius: theme('borderRadius.full'),
29+
},
30+
hover: {
31+
background: theme('colors.gray.500'),
32+
darkBackground: theme('colors.neutral.400'),
33+
},
34+
},
35+
}),
1836
},
19-
plugins: [],
37+
plugins: [
38+
require('@gradin/tailwindcss-scrollbar'),
39+
],
2040
}
2141

0 commit comments

Comments
 (0)