Generate custom scrollbar CSS for WebKit and Firefox. Adjust color, width, and radius with live preview. Free, private, and runs locally in your browser.
A developer tones down a code-snippet scrollbar to match the syntax-highlighter theme without breaking native Firefox behavior.
Cross-Browser ScrollbarsModern browsers expose two styling syntaxes: the WebKit pseudo-elements (Chrome, Edge, Safari) and the Firefox scrollbar-width + scrollbar-color properties. This tool emits both.
Keep thumb and track colors distinct enough for low-vision users — a minimum 3:1 contrast ratio is recommended.
"} />Default browser scrollbars look out of place on branded sites. This generator builds cross-browser custom scrollbar CSS — webkit pseudo-elements for Chrome/Safari/Edge plus the standard
Style them for branded apps where defaults look jarring, custom dark-mode interfaces, or design-led marketing sites. Don't style them for accessibility-sensitive apps (custom thin scrollbars are hard to grab for motor-impaired users), data-dense interfaces (users want native behaviour), or anything that needs to feel like a system app." }} />
at least 12px wide for motor accessibility (the WCAG-recommended minimum touch target is 24px, but scrollbars are exempt within reason). Hover and focus states must be visually distinct. Contrast of thumb against track at least 3:1. Test with a trackpad, mouse, and keyboard before shipping." }} />
Yes — separate
Mobile browsers hide scrollbars by default; custom CSS shows them again, which most mobile users find distracting. Test before shipping.
Yes — change the selector at the top of the generated CSS (e.g.
No — generation is local.