Layering
We use z-indices to control layering in our user interfaces by providing a third axis to arrange content. They are commonly used for overlay components such as for modals, popovers and tooltips.
Token | Value |
---|---|
zIndexSurface | 1 |
zIndexOverlay | 5 |
zIndexWindow | 10 |
zIndexDropdown | 20 |
zIndexTooltip | 30 |
zIndexNavigation | 40 |
zIndexModal | 50 |
zIndexPopover | 60 |
Usage
import {tokens} from '@pleo-io/telescope'const element = styled.div`z-index: ${tokens.zIndexSurface};`
- Usage
On this page