What Is the Scrollbar Styler?
Design custom scrollbars with visual controls for width, track color, thumb color, radius, and hover states. Generate cross-browser CSS.
Why Use This Tool?
Default browser scrollbars can clash with dark-themed or branded interfaces. This tool lets you design scrollbars visually and generates both the WebKit (Chrome/Safari/Edge) and standard (Firefox) CSS.
How to Use This Scrollbar Styler
- Choose a scrollbar width — Select thin, medium, or custom width for your scrollbar track and thumb.
- Pick your colors — Set the thumb color (the draggable part) and track color (the background channel). Match your site's design palette.
- Adjust the border radius — Round the scrollbar thumb for a modern look — fully rounded thumbs are a popular design trend.
- Preview the scrollbar — See your styled scrollbar on a live preview panel with scrollable content.
- Copy the CSS — Grab both the WebKit (Chrome/Safari/Edge) and Firefox scrollbar CSS. You'll need both for cross-browser support.
Worked example: why the copied CSS is split in two
Browsers that support the standard scrollbar-color and scrollbar-width ignore ::-webkit-scrollbar rules on any element whose computed scrollbar-color is anything other than auto (MDN). Support for scrollbar-color, from MDN's compatibility data (checked October 12, 2026):
| Browser | scrollbar-color since | Also reads ::-webkit-scrollbar |
| Chrome / Edge | 121 (January 2024) | yes |
| Firefox | 64 (December 2018) | no |
| Safari / iOS Safari | 26.2 (December 2025) | yes |
| Opera | 107 | yes |
- The tool handles the conflict. Its copied CSS puts the standard properties inside
@supports not selector(::-webkit-scrollbar). In Chromium 141 that test is true, so the block is skipped and the custom width, radius and hover colour apply; Firefox fails the test and gets the standard colours instead.
- Do not add scrollbar-color next to the webkit rules yourself. Without the guard, Chrome 121+ and Safari 26.2+ switch to the standard properties and drop your width, rounded thumb and hover style.
- Firefox gets colours and a width keyword only. Standard CSS has no pixel width, radius or hover state for scrollbars, so Firefox shows your colours at its own size.
- Mobile and macOS overlay scrollbars mostly ignore styling. Overlay scrollbars that appear only while scrolling are drawn by the system; test on Windows or with "show scroll bars: always" on macOS.
Frequently Asked Questions
Will custom scrollbars work in all browsers?
Yes, in every current desktop browser, through two systems. Chrome, Edge, Safari and Opera read the non-standard ::-webkit-scrollbar pseudo-elements (width, track and thumb colours, rounded corners, a hover colour). Firefox reads only the standard scrollbar-color and scrollbar-width properties: two colours and auto/thin/none. Chrome and Edge 121+ and Safari 26.2+ also understand the standard properties, and when those are set to anything but auto they override the ::-webkit-scrollbar rules (MDN). That is why this tool wraps the standard properties in @supports not selector(::-webkit-scrollbar): Firefox gets them, and the other browsers keep the fuller WebKit styling.
Should I hide scrollbars?
Only if there's another clear indication that content is scrollable (like a gradient fade or visible content cutoff). Hidden scrollbars can confuse users who rely on them for navigation.
Can I style scrollbars on specific elements?
Yes. You can scope scrollbar styles to specific containers using CSS selectors: .my-container::-webkit-scrollbar. This is useful for styling scroll areas within cards or sidebars without affecting the page scrollbar.
Can I style scrollbars with CSS?+
Yes. Chrome, Edge, Safari and Opera support the ::-webkit-scrollbar pseudo-elements for full customization; Firefox supports the standard scrollbar-color and scrollbar-width properties. Use both, but keep the standard properties away from WebKit/Blink browsers (for example inside @supports not selector(::-webkit-scrollbar)), because since Chrome 121 and Safari 26.2 a non-auto scrollbar-color or scrollbar-width overrides the ::-webkit-scrollbar styling.
Is it bad practice to hide scrollbars?+
Hiding scrollbars entirely removes a visual cue that content is scrollable, which hurts usability and accessibility. If you want a minimal look, use scrollbar-width: thin or style the scrollbar to blend subtly with your design rather than hiding it completely.
Do custom scrollbars work on mobile?+
Mobile browsers typically show their own overlay scrollbars that auto-hide, and CSS scrollbar styling has limited effect on touch devices. Custom scrollbar styles primarily impact desktop browsers.
Which CSS properties control scrollbar styling?+
In Chrome, Edge, Safari and Opera: ::-webkit-scrollbar (overall width and height), ::-webkit-scrollbar-track, ::-webkit-scrollbar-thumb, plus -button and -corner. In Firefox: scrollbar-color (thumb colour, then track colour) and scrollbar-width (auto, thin or none); Chrome 121+ and Safari 26.2+ support these too and let them override the WebKit pseudo-elements. Browsers that support neither show their default scrollbar, so custom scrollbars are a progressive enhancement.
Are styled scrollbars indexed or ignored by screen readers?+
Custom scrollbar styling is purely visual — it changes the appearance of the scrollbar but not the underlying scroll behavior or the accessibility tree. Screen readers and keyboard users interact with the scroll behavior the same way they would with a default scrollbar, and search engines ignore scrollbar styling entirely. The accessibility risk is making the styled scrollbar too thin or too low-contrast to see, not the styling itself.
Built by Derek Giordano · Part of Ultimate Design Tools
Privacy Policy · Terms of Service