Layout
Z-index
A small, fixed stacking scale so overlays never fight each other.
| Token | Value | Used by |
|---|---|---|
--mo-z-menu | 1000 | Menus |
--mo-z-sticky | 1020 | Sticky headers |
--mo-z-fixed | 1030 | Fixed bars |
--mo-z-toast | 1090 | Toasts |
--mo-z-tooltip | 1100 | Tooltips |
Dialogs and drawers use the browser's native top layer, so they always sit above everything without a z-index.
Your own sticky header
Use the tokens for your own overlays so they stack correctly with menus and toasts.
Orders (sticky)
Order #10420 · $19.00
Order #10421 · $26.00
Order #10422 · $33.00
Order #10423 · $40.00
Order #10424 · $47.00
Order #10425 · $54.00
Order #10426 · $61.00
Order #10427 · $68.00
Order #10428 · $75.00
Order #10429 · $82.00
.orders-header {
position: sticky;
top: 0;
z-index: var(--mo-z-sticky);
}
Change the scale
:root {
--mo-z-sticky: 50;
--mo-z-toast: 200;
}