Scrollbars
Slim, rounded, app-like scrollbars on desktop — on by default, no classes needed. Phones and tablets keep their native overlay scrollbars.
Invoices, orders and customers sync every few minutes. Scroll to see how the thumb looks — slim, rounded, and quiet until you need it.
Invoices, orders and customers sync every few minutes. Scroll to see how the thumb looks — slim, rounded, and quiet until you need it.
Invoices, orders and customers sync every few minutes. Scroll to see how the thumb looks — slim, rounded, and quiet until you need it.
Invoices, orders and customers sync every few minutes. Scroll to see how the thumb looks — slim, rounded, and quiet until you need it.
| Class | What it does |
|---|---|
.scrollbar-hover | The thumb shows only while the pointer is over the area (or focus is inside). App sidebars and menus do this automatically. |
.scrollbar-thin | Slimmer |
.scrollbar-none | Hidden but still scrollable — tab strips, carousels, chip rows |
.scrollbar-stable | Reserves the space so content doesn't shift when the scrollbar appears |
.scrollbar-native | The browser's own scrollbar. Put it on <html> to turn the styling off everywhere. |
Customize
:root {
--mo-scrollbar-size: 12px; /* full width, including the inset */
--mo-scrollbar-inset: 3px; /* space around the thumb */
--mo-scrollbar-thumb-color: color-mix(in oklab, var(--mo-fg-body) 20%, transparent);
--mo-scrollbar-thumb-hover: color-mix(in oklab, var(--mo-fg-body) 36%, transparent);
--mo-scrollbar-track: transparent;
}
.code-panel { --mo-scrollbar-thumb-color: var(--mo-default-300); } /* just one area */
Chrome, Edge and Safari get the full shape. Firefox only lets pages pick the width and colors, so there it's the browser's thin scrollbar in Moey's colors.
A scrolling chip row
Hidden scrollbar, still swipeable and scrollable with a trackpad.
<div class="scrollbar-none flex gap-2 overflow-x-auto pb-1">
<button class="btn btn-sm-solid rounded-pill flex-none">All</button>
<button class="btn btn-sm rounded-pill flex-none">Paid</button>
<button class="btn btn-sm rounded-pill flex-none">Unpaid</button>
<button class="btn btn-sm rounded-pill flex-none">Refunded</button>
<button class="btn btn-sm rounded-pill flex-none">Shipped</button>
<button class="btn btn-sm rounded-pill flex-none">Delivered</button>
<button class="btn btn-sm rounded-pill flex-none">Returned</button>
<button class="btn btn-sm rounded-pill flex-none">Cancelled</button>
<button class="btn btn-sm rounded-pill flex-none">On hold</button>
<button class="btn btn-sm rounded-pill flex-none">Draft</button>
<button class="btn btn-sm rounded-pill flex-none">Archived</button>
</div>
Colored for one area
Release notes for Moey — new popover forms, colored menus and bottom sheets that can be dragged to close.
Release notes for Moey — new popover forms, colored menus and bottom sheets that can be dragged to close.
Release notes for Moey — new popover forms, colored menus and bottom sheets that can be dragged to close.
Release notes for Moey — new popover forms, colored menus and bottom sheets that can be dragged to close.
Release notes for Moey — new popover forms, colored menus and bottom sheets that can be dragged to close.
.release-notes {
--mo-scrollbar-thumb-color: var(--mo-default-300);
--mo-scrollbar-thumb-hover: var(--mo-default-500);
}
No layout shift
scrollbar-stable reserves the space, so content doesn’t jump when a list grows long enough to scroll.
<div class="scrollbar-stable overflow-auto">…</div>