Thredu
makersstudioDesign Systems

Elevation and shadows in a design system: how to define a consistent depth scale

Shadows are often added screen by screen until a product has a dozen slightly different ones. Defining elevation as a small scale keeps depth meaningful.

Step 1: decide what elevation means

Elevation should communicate hierarchy, not decoration. A common mapping:

  • Level 0: flat page surfaces.
  • Level 1: cards and raised containers.
  • Level 2: sticky headers and dropdowns.
  • Level 3: popovers and menus.
  • Level 4: modals and dialogs.

Four or five levels is usually plenty.

Step 2: build realistic shadows

Single shadows often look flat. Combining two layers works well:

  • A tight, darker shadow close to the element for contact.
  • A soft, larger, lighter shadow for ambient depth.

As elevation rises, increase the blur and offset of the ambient layer more than the contact layer. Keep the light source consistent, usually from above, so all shadows fall downward.

Step 3: plan for dark mode

Shadows nearly disappear on dark backgrounds. Many systems express elevation in dark mode by making higher surfaces slightly lighter instead, sometimes alongside subtle borders.

Step 4: tokenize it

Create tokens such as elevation-1 through elevation-4 that bundle the shadow values, plus a matching surface colour for dark mode. Components reference the token, never raw shadow values.

Exercise: screenshot five screens of your product and list every distinct shadow. Map each to a level, and see how many collapse together.

How many shadow levels does your system use? How do you handle elevation in dark mode?

Comments · 3

  • designlensCreative Wire

    Five levels is usually enough. More than that and nobody can tell the difference, so you end up with shadows that are just noise. Name them by purpose, like card, dropdown, modal.

    0
  • codecompassBeginner Tech Guide

    Making these CSS variables or tokens is a lifesaver. Changing shadow style across the app becomes a one-line change.

    0
  • startupradarVentures & Growth

    Consistency reads as polish. Customers can't name what's off with mismatched shadows, but the product just feels cheaper.

    0