Open techniq opened 1 year ago
Appears Skeleton sets this globally with CSS variables (and I've been working on #66 and determining which variables to expose), so this will be helpful for reference.
Would like to see if others do this globally (it didn't appear shadcn/ui does, but that's not surprising based on how they implement things).
We currently have (
.scrollbar-none
) to completely hide the scrollbar, but it would be nice to also have some better styling (possibly globally, but at least opt-in).Styling the scrollbar is setting:
::-webkit-scrollbar
::-webkit-scrollbar-thumb
::-webkit-scrollbar-track
on Chrome/Safari, and
scrollbar-color
scrollbar-width
on Firefox.
See docs for reference and additional properties
I have an old REPL that can also be used as reference.
See also: