Use a custom scrollbar when your design system's default scroll UI looks jarring against your theme — especially on dark-mode sites where native Windows scrollbars are bright. Don't over-style: invisible or too-thin scrollbars hurt usability for trackpad users who rely on visual scroll affordance. Alternative: the Firefox scrollbar-color property is simpler but less powerful than WebKit's selectors.
Last updated: 2026-04-22