Skip to main content

Layers

Semantic tokens for semantic layers provide a cohesive approach to defining and applying visual depth and hierarchy across components in the design system. These tokens abstract the concept of layering into reusable variables, enabling consistent visual stacking, focus management, and depth perception while supporting flexibility for specific needs.

Is inherited by the z-index property.

SampleLayerTokenBase token value
6Top$cds-layer-top$cdsbt-zindex-600

z-index value: 600

5Fixed$cds-layer-fixed$cdsbt-zindex-500

z-index value: 500

4Overlay$cds-layer-overlay$cdsbt-zindex-400

z-index value: 400

3Modal$cds-layer-modal$cdsbt-zindex-300

z-index value: 300

2Dropdown$cds-layer-dropdown$cdsbt-zindex-200

z-index value: 200

1Structure$cds-layer-structure$cdsbt-zindex-100

z-index value: 100

0Ground$cds-layer-ground$cdsbt-zindex-0

z-index value: 0