Prominence

Elevating interface objects to create a meaningful sense of depth

Most digital interfaces are inherently flat—all objects within an interface are constrained by two spatial dimensions: width (x) and height (y). To add additional dimensionality designers must create an illusion of depth (z). Typically, designers achieve this effect with varying degrees of a drop shadow. This strengthens spatial relationships and provides additional interaction affordances.

While there are some parallels between an object's elevation and its z-index—specifically regarding overlapping content—the Cedar system chooses to not create dependencies between the two for the following reasons:

  • There are not enough tokenized elevation options to account for the wide range of z-index values
  • Elevation may be applied to objects that are not intended to stack on top of or otherwise interfere with adjacent objects. Forcing a z-index value in these cases could yield unpredictable results

When to use

  • Emphasizing and responding to interaction or a change of state
  • Reinforcing the hierarchy of a page
  • Applying a stronger prominence value for elements that overlap other areas of the UI

When not to use

  • Prominence is the only means of conveying actionability
  • Relying solely on a drop shadow to meet accessibility contrast requirements
  • Elevating large proportions of the UI at the same time

The shadow cast by an elevated object helps to communicate aspects of interactivity, order, and priority by drawing from real-world conventions. Designers use this implied sense of depth to:

Convey an ability to be pressed, among other attributes. Content with a slightly elevated border with a standard pointer cursor nearby.

Respond to interaction by raising or lowering. A link pointer hovers over a rectangle representing content, making it appear slightly higher than the rectangle next to it.

Focus a user's attention on a specific object. Text next to elevated content on the right hand side.

Signal that an object can be moved across a surface. A grabber pointer hovering over one of three identically sized rectangles, making the first item appear to be elevated higher.

Visually separate dissimilar content or help group like items. Two sets of three rectangles, with the bottom set appearing elevated while the top three are not elevated.

Create emphasize foreground and background relationships. The lower corner of a rectangle is superimposed over another rectangle