Skip to main content

Z-index

Z-index tokens in our design system are crucial for managing the stack order of elements that overlap each other in our web layouts. Each token corresponds to a specific z-index value, ensuring a structured and intuitive layering of elements, from background elements to pop-up modals and tooltips. These tokens help maintain consistency and predictability in the visual hierarchy of our interfaces.

VariableValue
--ty-sys-z-index-deep-1
--ty-sys-z-index-sticky100
--ty-sys-z-index-nav200
--ty-sys-z-index-backdrop250
--ty-sys-z-index-drawer300
--ty-sys-z-index-toast400
--ty-sys-z-index-dropdown500
--ty-sys-z-index-overlay600
--ty-sys-z-index-modal700
--ty-sys-z-index-popup800