Fusion UI LogoFusion UI Logo
Fusion UI LogoFusion UI Logo
/
Getting Started
Concepts
Components
Example Apps
Getting Started
Concepts
Components
Example Apps
Fusion UI LogoFusion UI Logo
Getting Started
Concepts
Components
Example Apps
Overview
Foundations
Color
Typography
Spacing & Radius
Core Concepts
Surfaces & Elevation
States
Nesting
Views & Offsets
Animations
Touch & Mobile

Surfaces & Elevation

Backdrop and elevated surfaces, the four elevations and what they mean.

Overview

Surfaces encapsulate parts of the UI. At the base there are two of them: the backdrop surface is the background of the application, the elevated surface groups content in tiles, menus, overlays, dialogs and everything that needs to be above the background.

backdrop-surfaceThe page itself
elevated-surfaceA tile on the page

Elevation

Elevated surfaces come in four elevations. The higher the elevation, the stronger the shadow and the more temporary the surface. Elevation tells people what lies above what — and what disappears again.

elevation-0shadow-elevation-0
elevation-1shadow-elevation-1
elevation-2shadow-elevation-2
elevation-3shadow-elevation-3
ElevationUsed byMeans
0Flat areas, e.g. a tile within a tile, sections of a sheetPart of the surface below, no separation
1Tiles, page header, side menuPermanent content above the backdrop
2Context menus, tooltips, toolbar, snackbars, dragged itemsTemporary, anchored to an element, closes easily
3Modals, sheets, popovers, command menu, account menuOverlays above everything, often with a blanket

Alternate surface

Elevation 0 can use the elevated-surface-alternate background to set an area apart without a shadow, e.g. the code area of examples in this documentation.

elevation-0elevated-surface-alternate

Semantics

A surface can only influence its own content and the surfaces nested in it: a button in a tile acts on that tile. Exceptions are surfaces that are clearly subordinate to another, like menus and dialogs opened from it, or surfaces connected by lines, like the nodes of a graph.

Revenue
The title, the content and the actions of this tile all belong to the same topic.

Using surfaces

Use the classes of fusion-css, or the elevation prop of Tile.

<div className="elevated-surface shadow-elevation-2">…</div>
<Tile elevation={0}>…</Tile>
@use "@brynlabs/fusion-css/index" as fusioncss;
.menu {
background: fusioncss.get-color("elevated-surface");
box-shadow: var(--shadow--elevation-2);
}
On this page
  • Overview
  • Elevation
  • Alternate surface
  • Semantics
  • Using surfaces