Skip to content
Design System
GitHub

Elevation

Three layers, no more. Depth tells the operator what is page, what floats over the live view, and what interrupts it.

Layers

In dark mode shadows are weak, so every raised layer also gets a hairline edge.

0 · Surface
1 · Float
2 · Overlay
  • 0 · Surface
    Recipe
    bg-card ring-1 ring-border
    Use
    Cards, list groups, tables. Sits in the page.
  • 1 · Float
    Recipe
    bg-float shadow-float ring-1 ring-edge backdrop-blur-xl
    Use
    Island and dock over the map. Translucent so the map stays visible.
  • 2 · Overlay
    Recipe
    bg-popover shadow-overlay ring-1 ring-border + bg-(--scrim) behind
    Use
    Dialogs, sheets, menus. Blocks or covers the page.

Shadow and edge tokens

  • --shadow-float
    Light
    0 8px 24px rgb(9 9 11 / 0.12)
    Dark
    0 8px 24px rgb(0 0 0 / 0.32)
  • --shadow-overlay
    Light
    0 16px 40px rgb(9 9 11 / 0.18)
    Dark
    0 16px 40px rgb(0 0 0 / 0.45)
  • --edge
    Light
    rgb(9 9 11 / 0.14)
    Dark
    rgb(255 255 255 / 0.12)
  • --float
    Light
    rgb(255 255 255 / 0.9)
    Dark
    rgb(32 32 38 / 0.86)
  • --scrim
    Light
    rgb(9 9 11 / 0.45)
    Dark
    rgb(0 0 0 / 0.66)

Rules

Do. Keep in-page content flat: one surface, a hairline border.
Don't. Stack shadows on cards inside cards. Shadow means the layer floats; in-page content does not.