Skip to content

CSS Scrollbar Generator

Generate custom styled scrollbar CSS for WebKit and Firefox with live preview, presets, and one-click copy.

Updated

What is the CSS Scrollbar Generator?

How it works

Examples

Minimal thin scrollbar

Width: 6px, Thumb: #94a3b8, Track: #f1f5f9, Radius: 3px
.custom-scrollbar::-webkit-scrollbar { width: 6px; } .custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; } .custom-scrollbar::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; } .custom-scrollbar { scrollbar-width: thin; scrollbar-color: #94a3b8 #f1f5f9; }

Dark mode scrollbar

Width: 8px, Thumb: #4b5563, Track: #1f2937, Radius: 4px, Hover: #6b7280
.custom-scrollbar::-webkit-scrollbar { width: 8px; } .custom-scrollbar::-webkit-scrollbar-track { background: #1f2937; border-radius: 4px; } .custom-scrollbar::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 4px; } .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #6b7280; } .custom-scrollbar { scrollbar-width: thin; scrollbar-color: #4b5563 #1f2937; }

Hidden scrollbar

Width: 0px, Firefox: none
.custom-scrollbar::-webkit-scrollbar { display: none; } .custom-scrollbar { scrollbar-width: none; }

Rounded blue scrollbar with border

Width: 10px, Thumb: #3b82f6, Track: #e2e8f0, Radius: 10px, Thumb Border: 2px solid #ffffff
.custom-scrollbar::-webkit-scrollbar { width: 10px; } .custom-scrollbar::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 10px; } .custom-scrollbar::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 10px; border: 2px solid #ffffff; } .custom-scrollbar { scrollbar-width: auto; scrollbar-color: #3b82f6 #e2e8f0; }

Neon cyan scrollbar

Width: 12px, Thumb: #22d3ee, Track: #0f172a, Radius: 6px, Thumb Border: 2px solid #0f172a
.custom-scrollbar::-webkit-scrollbar { width: 12px; } .custom-scrollbar::-webkit-scrollbar-track { background: #0f172a; border-radius: 6px; } .custom-scrollbar::-webkit-scrollbar-thumb { background: #22d3ee; border-radius: 6px; border: 2px solid #0f172a; } .custom-scrollbar { scrollbar-width: auto; scrollbar-color: #22d3ee #0f172a; }

Frequently asked questions