Zazz Design Framework
Reference

Z-Index

Utilities for controlling the stack order of positioned elements.

Class reference

ClassProperty
z-isolatez-index: isolate. Creates a new stacking context
z-0z-index: 0
z-10z-index: 10
z-20z-index: 20
z-30z-index: 30
z-40z-index: 40
z-50z-index: 50

The z-isolate utility uses CSS isolation to start a new stacking context without affecting the painted z-index of children. Useful when you need to contain stacking without forcing children to render in front of or behind unrelated content.

Examples

Stacked layers

<div class="relative">
  <img class="z-0" src="hero.jpg" alt="" />
  <div class="absolute z-10" style="inset: 0">Overlay above the image, below the modal.</div>
</div>

Isolated stacking context

<section class="z-isolate relative">
  <!-- Children stack within this section, not against page-level z-indexes -->
</section>

Suggested scale usage

Zazz's scale jumps by tens (0, 10, 20, …, 50) to leave room between for custom values without breaking the system. A suggested mapping:

ClassTypical use
z-0Page content baseline
z-10Section overlays, scroll-hint badges
z-20Sticky headers, navigation
z-30Dropdowns, popovers
z-40Toasts, snackbars
z-50Modals, command palettes

Native <dialog> elements set z-index: 9999 via the reset and sit above everything in the utility scale.

Higher values

For values above 50, apply directly:

.global-banner {
  z-index: 100;
}

But: if you're reaching for z-index: 999999, the stacking context is probably broken somewhere. Look for unintended position: relative or transform declarations that are creating contexts you didn't expect.

On this page