foundations
Elevation ()
Chameleon encourages consistency by using uniform values that simulate depth. Elevation is the relative distance between two UI elements.
Chameleon makes use of a list of predefined elevation values that simulate a three-dimensional stack above the surface of an interface. The relative distance between two surfaces is measured along the z-axis, where the degree of elevation can be enhanced with shadows.
Z-index Order
UI elements are depicted on a relative distance between each other. To concistenly place them on top of each other, every element makes use of a z-index order. This emphasizes a layering effect and hierarchy in our interfaces.
| Component | Example | 
|---|---|
zIndex100  | tooltip | 
zIndex200  | menu | 
zIndex300  | popover | 
zIndex400  | sticky content | 
zIndex500  | sheet | 
zIndex600  | modal backdrop | 
zIndex700  | modal sheet | 
zIndex800  | modal (dialog, alert, page, full screen) | 
zIndex900  | toast | 
Shadows
Shadows can increase the relative depth for a given z-index order. An element with a smaller and sharper shadow indicates that the surface is closer to the surface behind it. Larger and softer shadows indicate more distance.
Shadow -1
Shadow 0
Shadow 1
Shadow 2
Shadow 3