CSS scrollbar style generator
Generate custom ::-webkit-scrollbar and scrollbar-width/scrollbar-color CSS rules.
CSS scrollbar style generator
The default browser scrollbar rarely matches the rest of a design, and styling one means remembering two different specs at once: the WebKit ::-webkit-scrollbar pseudo-elements Chrome, Safari and Edge use, and the standard scrollbar-width/scrollbar-color properties Firefox reads instead. This tool generates both at once from a handful of options, so you copy one block of CSS and every major browser renders a matching scrollbar.
Set a target selector — body for the whole page, or a class like .sidebar for one scrollable panel — then choose the scrollbar's width in pixels, the track and thumb colors, and the color the thumb switches to on hover. Thumb roundness controls the border-radius of the draggable bar, and the inset border adds a transparent gap between the thumb and the track so it reads as a floating pill instead of a solid block. The Variant option switches between the browser's normal scrollbar, a slimmer "thin" one, and "hidden", which removes the scrollbar entirely with -ms-overflow-style and scrollbar-width: none while leaving the element's own scrolling untouched.
Turning on the dark mode variant wraps a second copy of the rules in an @media (prefers-color-scheme: dark) block, with the track and thumb colors automatically darkened so a site that already switches themes gets a scrollbar that switches with it — no separate calculation needed. Every option updates the output live as you adjust it, and the tally under the result reports how many CSS rule blocks were generated and the exact character count.
Everything runs locally in your browser: no selector, color or CSS is ever sent to a server. Copy the result straight into your stylesheet, download it as a .txt file, or send it to another tool's input to keep refining it.