← All tools

CSS Scrollbar Generator

Style a scrollable container with browser-aware sizing and thumb and track colors.

css-scrollbar-generatorLOCAL WORKSPACE

Enabling local controls…

Tool settings

Precise sizing and rounded thumbs use scrollbar pseudo-elements. Browsers with standard scrollbar support only retain the chosen colors.

Settings stay on this page. Reloading restores the defaults.

Feature reference checked 2026-11-21 · ZeroServer

Live preview and export

CSS

.custom-scrollbar {
  scrollbar-color: #6366f1 #e5e7eb;
}

@supports selector(::-webkit-scrollbar-thumb) {
.custom-scrollbar {
  scrollbar-color: auto;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #e5e7eb;
}

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

How to use this tool

Choose a preset or edit the controls. Compare the live preview, then copy or download the styles and any available markup.

When not to use it

Verify contrast, placement and browser behavior in the component that will use the exported styles.