Skip to content

Commit 52e6b78

Browse files
✨ Add custom scrollbar styles for light and dark themes
1 parent a687868 commit 52e6b78

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

resources/css/app.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,47 @@
88
}
99
}
1010

11+
/* Scrollbar width */
12+
::-webkit-scrollbar {
13+
height: 8px;
14+
width: 8px;
15+
}
16+
17+
/* Scrollbar track */
18+
::-webkit-scrollbar-track {
19+
background: transparent;
20+
border-radius: 4px;
21+
}
22+
23+
::-webkit-scrollbar-thumb {
24+
background: transparent;
25+
}
26+
27+
/* Scrollbar thumb (the draggable part) */
28+
::-webkit-scrollbar-thumb {
29+
border-radius: 999px;
30+
}
31+
32+
/* Light Theme */
33+
::-webkit-scrollbar-thumb {
34+
@apply bg-gray-300/80;
35+
}
36+
37+
/* Scrollbar thumb on hover */
38+
::-webkit-scrollbar-thumb:hover {
39+
@apply bg-gray-300;
40+
}
41+
42+
/* Dark Theme */
43+
.dark ::-webkit-scrollbar-thumb {
44+
@apply bg-cloud/60;
45+
}
46+
47+
/* Scrollbar thumb on hover */
48+
.dark ::-webkit-scrollbar-thumb:hover {
49+
@apply bg-cloud;
50+
}
51+
1152
/* Whole menu */
1253
nav ul {
1354
@apply list-none text-sm;

0 commit comments

Comments
 (0)