CSSKit

CSS Scrollbar Generator | Custom Scrollbar Styles - CSSKit

Free CSS scrollbar generator. Customize browser scrollbar width, colors, border-radius, and track styling with live preview. Copy cross-browser CSS.

Scrollbar Thumb

Scrollbar Track

1. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

2. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

3. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

4. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

5. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

6. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

7. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

8. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

9. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

10. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

11. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

12. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

13. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

14. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

15. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

16. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

17. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

18. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

19. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

20. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

21. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

22. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

23. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

24. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

25. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

26. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

27. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

28. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

29. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

30. Scroll this container to preview your custom scrollbar style. Lorem ipsum dolor sit amet.

/* WebKit browsers (Chrome, Safari, Edge) */
.custom-scrollbar::-webkit-scrollbar {
  width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}

/* Firefox */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #6366f1 #f1f5f9;
}

What is CSS Scrollbar Generator?

CSS Scrollbar Generator is a free online tool for customizing browser scrollbar styles. Design custom scrollbar thumb and track colors, width, and border-radius, and generate CSS code that works with WebKit browsers and the CSS Scrollbars specification.

How to Use CSS Scrollbar Generator

Set the scrollbar width and border radius. Pick colors for the scrollbar thumb (handle) and track (background). Adjust hover and active colors for the thumb. Choose the track background color. See the scrollbar style previewed on a scrollable container. Copy the generated CSS code including WebKit and standard properties.

How CSS Scrollbar Generator Works

The tool generates both WebKit-specific pseudo-element styles (::-webkit-scrollbar, ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track) and the CSS Scrollbars standard properties (scrollbar-width, scrollbar-color). You customize the appearance visually and the preview shows a scrollable container with your custom scrollbar.

Common Use Cases

  • Matching scrollbar colors to your site theme
  • Creating thin modern scrollbar designs
  • Building custom scrollable panels and sidebars
  • Designing dark mode scrollbar styles
  • Creating branded scrollbar experiences

Frequently Asked Questions

Do custom scrollbars work in all browsers?

WebKit-based browsers (Chrome, Safari, Edge) support ::-webkit-scrollbar pseudo-elements. Firefox supports the standard scrollbar-color and scrollbar-width properties. The generated code includes both for maximum compatibility.

Can I change the scrollbar width?

Yes, you can set a custom width in pixels for WebKit browsers. For Firefox, you can choose between auto, thin, and none using scrollbar-width.

Can I add rounded corners to the scrollbar?

Yes, you can set a border-radius on the scrollbar thumb and track in WebKit browsers to create rounded scrollbar handles.

Will custom scrollbars affect mobile browsers?

Mobile browsers typically use overlay scrollbars that disappear when not scrolling. Custom scrollbar styles mainly affect desktop browsers.

Related Tools