Create custom scrollbars with CSS that work in Chrome, Edge, Firefox and Safari. Set the width, track color, thumb color and hover color, round the thumb and inset it from the edge, and try it in a live scrollable box. The output includes both the standard scrollbar-color rules and the ::-webkit-scrollbar rules Safari needs, scoped to any selector. It's free and runs in your browser — nothing leaves your device.
| Browser | Uses |
|---|---|
| Firefox | scrollbar-width, scrollbar-color |
| Chrome / Edge 121+ | scrollbar-width, scrollbar-color (WebKit rules as fallback) |
| Safari | ::-webkit-scrollbar pseudo-elements |
Firefox and modern Chrome/Edge use scrollbar-width and scrollbar-color. Safari only understands ::-webkit-scrollbar. Including both covers every current browser.
No. The standard property only allows auto, thin or none, so widths up to 10px are written as thin.
Rarely. Hidden scrollbars make it hard to see that content scrolls, especially for mouse users. Thin is usually better.
macOS overlay scrollbars only appear while scrolling. Set System Settings to always show scroll bars to check it.
No. Everything is generated in your browser.
Scrollbar styling has two separate mechanisms, and real coverage needs both. The standard properties, scrollbar-width (auto, thin or none) and scrollbar-color (thumb then track), are supported by Firefox and by Chrome and Edge from version 121. Safari, and Chromium before that, use the non-standard ::-webkit-scrollbar pseudo-elements, which allow exact widths, rounded thumbs, an inset border and hover colors. The generator writes the standard rule first and the WebKit rules after, scoped to a selector you choose, so a single widget can be styled without touching the page scrollbar. The standard properties can't express a pixel width, so widths of 10px or less map to thin. The thumb inset is drawn as a border in the track color, which is how a floating, padded thumb is made. On macOS with overlay scrollbars, the system hides scrollbars until scrolling regardless of CSS.