Skip to main content

Elevation

Ask AIView as Markdown
Copy a prompt to ask an AI assistant about this page.

Elevation in our design system defines the perceived distance of a surface from the background along the z-axis, establishing content hierarchy and guiding user focus.

Elevation

Our design system achieves elevation through the application of background color layers, borders and selective shadows to achieve depth and clarity.

info

Important note: We changed the elevation approach starting with version 4.0 of our design system, so it is only partially applicable for v3.x (see migration guide for guidance). With version 6.0, we changed the available tokens for background layers and borders, further refining the elevation system (see colors).

Our approach to elevation is two-fold:

  1. Background color layers: Primarily achieved through a system of distinct background tokens and additional border-colors. This defines the foundational stacking order for static content.
  2. Selective drop shadows: Used as a separate visual cue for elements that float above the UI, demanding immediate attention or representing a temporary interaction.

When you use it intentionally, you can achieve:

  • Clarity: Help users understand the relationship between different UI elements.
  • Hierarchy: Guide the user's eye to the most important information or interactive elements.
  • Focus: Draw attention to temporary or critical content, e.g. toasts.
  • Consistency: Ensuring a predictable and intuitive user experience across all applications.

The layering model​

This model outlines the primary elevation levels for static UI elements:

Layering model

Base layer​

  • Purpose: Main page background for the entire user interface.
  • Usage: Use --si-sys-color-background-0 for the main canvas of your application, large sections, or the default background of a page.
tip

Visually separate large sections on the base layer by applying borders, e.g. --si-sys-color-border-4 for layout structure or --si-sys-color-border-2 for interactive elements. When using our components, we recommend using the available outline variants.

First-level containers​

  • Purpose: Container elements that need to stand out from the main background.
  • Usage: Apply --si-sys-color-background-1 to components like cards, side panels, distinct content blocks, or primary interactive elements.

Second-level containers​

  • Purpose: Nested containers within a container, e.g. a sub-section inside a card.
  • Usage: Maintain --si-sys-color-background-1 as background, but visually separate these nested containers with borders (e.g. --si-sys-color-border-3).

Floating elements​

  • Purpose: Elements that float above the main UI, demanding immediate attention or representing a temporary interaction.
  • Usage: Use selective shadows (primarily --si-sys-color-effects-shadow-30, see shadow) to indicate physical overlap for components like dropdowns, tooltips and toasts.

We don’t use shadows that are part of the primary layout flow e.g. navigation elements or cards.

Elevation example

Other background-# tokens​

We recommend using the --si-sys-color-background-0 and --si-sys-color-background-1 model for primary background layering. The other base backgrounds are preserved for specific component use cases. In particular, --si-sys-color-background-3 is intended for elevated overlay containers (e.g. menus, dropdowns, popovers, toasts), while --si-sys-color-background-2 and --si-sys-color-background-4 provide stronger contrast to highlight containers.

Interaction states (hover & active)​

For interactive elements, additional --hover and --active color tokens are available. These are applied consistently across all elevation layers to indicate interaction states. Refer to the colors chapter for specific --hover and --active token names.

Hover and active colors