Layering

  • Geometry
  • tokens: 7

A layering scale with a step of fifty. The step is the point: between two neighbouring layers there is room for someone else’s widget, a consent banner or a chat bubble that has to sit between them — and no need to renumber anything.

Source: @feugene/granularity 1.1.1, tokens/*.json

On this page
  • The scale lives on the document root, not on a subtree: overlay panels teleport into body and never see a subtree’s variables. One scale per document is a property, not a limitation.

Layering: z-index scale

TokenValue
--gr-z-bottom-nav--gr-z-bottom-nav850
--gr-z-navbar--gr-z-navbar900
--gr-z-dropdown--gr-z-dropdown1000
--gr-z-tooltip--gr-z-tooltip1050
--gr-z-modal--gr-z-modal1100
--gr-z-loading--gr-z-loading1150
--gr-z-toast--gr-z-toast1200