Skip to main content
Neighborhood Design System v5.0.0-rc.2

Z-Index

Z-Index tokens define layering values to establish consistent stacking order across the design system.

Use the semantic z-index tokens, --nbhd-z-*, in your CSS. Each one points to the matching layer of the base scale (--nbhd-z-100 → --nbhd-base-z-100). Components use the same tokens.

Pick a layer from the scale instead of an arbitrary number, so overlapping components such as headers, menus and dialogs stack the same way on every site.

.site-header {
  position: sticky;
  z-index: var(--nbhd-z-100);
}

Properties

TokenCSS VariableValue
z.abyssvar(--nbhd-z-abyss)-999999
z.buriedvar(--nbhd-z-buried)-100
z.belowvar(--nbhd-z-below)-1
z.groundvar(--nbhd-z-ground)0
z.autovar(--nbhd-z-auto)auto
z.1var(--nbhd-z-1)1
z.10var(--nbhd-z-10)10
z.100var(--nbhd-z-100)100
z.200var(--nbhd-z-200)200
z.300var(--nbhd-z-300)300
z.400var(--nbhd-z-400)400
z.500var(--nbhd-z-500)500
z.600var(--nbhd-z-600)600
z.700var(--nbhd-z-700)700
z.800var(--nbhd-z-800)800
z.900var(--nbhd-z-900)900
z.1000var(--nbhd-z-1000)1000
z.10000var(--nbhd-z-10000)10000
Esc
↑ ↓ to move↵ to open