zLayer
The z-index variable for a named layer, bottom to top: map, mapOverlay,
chrome, chromeRaised, sheet, toolbar, popover, toast. Components name a
layer and never write a number; tokens.css.ts and the engine style file
are the only places raw z-index values may appear.
This is a function exported by @mapcairn/theme, checked against version 0.2.0.
Signature
import { zLayer } from "@mapcairn/theme";
function zLayer(name: ZLayerName): string;
Parameters
name(ZLayerName)
Returns
string
Remarks
Lives outside tokens.css.ts because a .css.ts module may only
export serialisable values, not functions.
See also
Source: packages/theme/src/zLayer.ts:14