Skip to main content
v0.1 dev

Token reference

Z-index

Named stacking layers for predictable overlap and focus visibility.

7 tokensglobal · 7System extension

Overview

Named stacking layers for predictable overlap and focus visibility. Values come from canonical DTCG JSON or are derived from governed responsive and preference contracts. Published names are versioned APIs. This page is a governed extension to the audited reference information architecture.

Token Reference

Token pathSetTypeCanonical valueCSS custom property
zIndex.baseglobalnumber0--he-z-index-base
zIndex.raisedglobalnumber10--he-z-index-raised
zIndex.stickyglobalnumber20--he-z-index-sticky
zIndex.overlayglobalnumber40--he-z-index-overlay
zIndex.modalglobalnumber60--he-z-index-modal
zIndex.toastglobalnumber80--he-z-index-toast
zIndex.criticalglobalnumber100--he-z-index-critical

Usage

  • Consume semantic or component aliases in application code.
  • Use global values only to author or review foundation aliases.
  • Keep responsive and preference behavior aligned across Web and Flutter.
  • Do not edit generated outputs or introduce an unregistered literal.

Open related foundation guidance

Accessibility

Changes require cross-theme contrast, text-scaling, reflow, forced-colors, reduced-motion, and input-modality review where applicable. A token cannot make essential meaning depend on color, opacity, motion, elevation, or viewport size alone.

Web and Flutter API

/* Web */
color: var(--he-z-index-base);

// Flutter
final value = HeTokens.zIndexBase;

The example uses an exact generated name. The table is the complete Web reference; global and semantic Flutter constants are generated in he_tokens.g.dart, while component contracts own component-level values.