CSS Scrollbar Generator
Generate custom CSS scrollbars with scrollbar-width, scrollbar-color, and ::-webkit-scrollbar rules.
Loading tool...
What is CSS Scrollbar Generator?
The CSS Scrollbar Generator is a visual tool for styling scrollbars with native CSS. It produces the modern scrollbar-width and scrollbar-color properties for Firefox and current Chromium browsers, plus an optional ::-webkit-scrollbar block with size, radius, and hover controls for older Chrome and Safari. A live preview updates as you tweak every control, and one click copies clean, production-ready CSS.
Key Benefits
- Brand-consistent scrollbars without JavaScript
- Live preview of every property combination
- Both standard and WebKit output in one snippet
- Copy-ready CSS scoped to a class
Common Use Cases
- β’Matching scrollbars to a dark-mode design system
- β’Slimming chunky default bars in dashboards
- β’Hiding scrollbars in carousels while keeping scroll
- β’Prototyping scrollbar styles before shipping
How to Use the CSS Scrollbar Generator
- Pick a scrollbar width: Choose auto for the native look, thin for a slimmer bar, or none to hide the scrollbar while keeping scroll functionality.
- Choose thumb and track colors: Use the color pickers or type a hex value. Pick a thumb hover color so users get feedback when dragging the bar.
- Enable the WebKit block (optional): Turn on ::-webkit-scrollbar pseudo-elements for older Chrome and Safari, then tune the size and thumb border radius sliders.
- Preview and copy: Scroll the live preview to check the feel, then click Copy CSS and paste the rules into your stylesheet.
Key Features
- Standard scrollbar-width (auto/thin/none) and scrollbar-color output for Firefox and modern Chrome.
- Optional ::-webkit-scrollbar block with size, border-radius, and hover color controls.
- Live scrollable preview that updates instantly as you tweak every control.
- Color pickers with hex input validation and sensible fallback values.
- One-click copy of clean, production-ready CSS scoped to a .scrollable class.