feat(scrollbar): add global styles for customizing scrollbars

This commit is contained in:
2026-03-13 02:21:03 +08:00
parent b291689b1c
commit 105ac428ce

View File

@@ -53,3 +53,42 @@
}
}
}
/* Global Scrollbar Styles */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background-color: #cbd5e1; /* Tailwind slate-300 */
border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #94a3b8; /* Tailwind slate-400 */
}
/* Dark mode support */
.dark ::-webkit-scrollbar-thumb {
background-color: #334155; /* Tailwind slate-700 */
}
.dark ::-webkit-scrollbar-thumb:hover {
background-color: #475569; /* Tailwind slate-600 */
}
/* For Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #cbd5e1 transparent;
}
.dark * {
scrollbar-color: #334155 transparent;
}