Skip to content

Shadows

Each elevation on a surface, with its token and its light and dark values.

Depth is surface tone first. A card rests on the page behind a hairline, a control is a ring, and a fill stands where a shadow would otherwise go. A drop is kept for the few layers that leave the page: they float over it, or they are being carried across it.

Each shadow is drawn twice, with its light value on the light page and its dark value on the dark one, whichever theme this page is in. In dark a drop cannot be seen against the canvas, so every layer leads with a hairline of light.

Floating layers

These are the layers that float. Menus, popovers, lists and toasts share one drop, and dialogs take a deeper one.

Light0 0 0 1px rgb(0 0 0 / 0.06), 0 4px 10px rgb(0 0 0 / 0.04), 0 12px 28px rgb(0 0 0 / 0.07)
Dark0 0 0 1px rgb(255 255 255 / 0.08), 0 12px 32px rgb(0 0 0 / 0.5)
shadow-popoverA layer that floats over the page and leaves it usable: a menu, a popover, a select or combobox list, a preview card, a toast.
Light0 0 0 1px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.06), 0 24px 64px rgb(0 0 0 / 0.1)
Dark0 0 0 1px rgb(255 255 255 / 0.08), 0 24px 72px rgb(0 0 0 / 0.6)
shadow-modalA layer that takes the page over: a dialog, an alert dialog, the command palette, a sheet on a phone.
Light0 4px 12px rgb(from var(--primary) r g b / 0.3), 0 1px 2px rgb(0 0 0 / 0.1)0 4px 12px rgb(from #462cf2 r g b / 0.3), 0 1px 2px rgb(0 0 0 / 0.1)
Dark0 4px 14px rgb(0 0 0 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.1)
shadow-fabThe floating action button on a phone. It is the one drop that takes the primary's colour, and only in light.

Cards on a tray

A card that can be picked up sits on a filled tray and says so with a small drop. The drop grows as the card is hovered and lifted.

Light0 0 0 1px rgb(0 0 0 / 0.07), 0 1px 2px rgb(0 0 0 / 0.05), 0 2px 6px rgb(0 0 0 / 0.03)
Dark0 0 0 1px rgb(255 255 255 / 0.07), 0 2px 6px rgb(0 0 0 / 0.4)
shadow-cardA card at rest on a tray: a hairline ring over a whisper of a drop.
Light0 0 0 1px rgb(0 0 0 / 0.09), 0 1px 2px rgb(0 0 0 / 0.05), 0 4px 12px rgb(0 0 0 / 0.06)
Dark0 0 0 1px rgb(255 255 255 / 0.1), 0 4px 12px rgb(0 0 0 / 0.45)
shadow-card-hoverThat card under the pointer. The drop deepens; the ring firms.
Light0 0 0 1px rgb(from var(--primary) r g b / 0.24), 0 0 0 4px rgb(from var(--primary) r g b / 0.14), 0 2px 12px rgb(0 0 0 / 0.08), 0 6px 16px rgb(0 0 0 / 0.12)0 0 0 1px rgb(from #462cf2 r g b / 0.24), 0 0 0 4px rgb(from #462cf2 r g b / 0.14), 0 2px 12px rgb(0 0 0 / 0.08), 0 6px 16px rgb(0 0 0 / 0.12)
Dark0 0 0 1px rgb(from var(--primary) r g b / 0.5), 0 0 0 4px rgb(from var(--primary) r g b / 0.22), 0 6px 16px rgb(0 0 0 / 0.5)0 0 0 1px rgb(from #5b45f5 r g b / 0.5), 0 0 0 4px rgb(from #5b45f5 r g b / 0.22), 0 6px 16px rgb(0 0 0 / 0.5)
shadow-card-liftA card picked up to be dragged: a ring in the primary and a deeper drop.
Light0 0 0 1px var(--ring), 0 0 0 4px rgb(from var(--ring) r g b / 0.14)0 0 0 1px #462cf2, 0 0 0 4px rgb(from #462cf2 r g b / 0.14)
Dark0 0 0 1px var(--ring), 0 0 0 4px rgb(from var(--ring) r g b / 0.14)0 0 0 1px #9a8cff, 0 0 0 4px rgb(from #9a8cff r g b / 0.14)
shadow-focusThe halo of a card the keyboard is on, in the colour of --ring.

Rings

These are shadows in name only. Each draws an edge with box-shadow, so the edge takes no room in the layout and follows the corner.

Light0 0 0 1px var(--input), 0 1px 1px rgb(0 0 0 / 0.03)0 0 0 1px #e6e6e6, 0 1px 1px rgb(0 0 0 / 0.03)
Dark0 0 0 1px var(--input)0 0 0 1px #2e2e2e
shadow-controlThe edge of a field or an outline button: a hairline ring, with the faintest drop in light.
Lightvar(--shadow-control)0 0 0 1px #e6e6e6, 0 1px 1px rgb(0 0 0 / 0.03)
Darkvar(--shadow-control)0 0 0 1px #2e2e2e
shadow-secondaryThe same ring, under the name a secondary button reads.
Light0 0 0 1px var(--input)0 0 0 1px #e6e6e6
Dark0 0 0 1px var(--input)0 0 0 1px #2e2e2e
shadow-chipThe ring of a property chip or a toolbar search.
Light0 0 0 1px rgb(from var(--foreground) r g b / 0.16)0 0 0 1px rgb(from #191919 r g b / 0.16)
Dark0 0 0 1px rgb(255 255 255 / 0.16)
shadow-chip-hoverThat ring under the pointer, a step firmer.
Lightinset 0 0 0 1px var(--border)inset 0 0 0 1px #ebebeb
Darkinset 0 0 0 1px var(--border)inset 0 0 0 1px #262626
shadow-raisedAn inner hairline on a surface raised off a fill: the selected tab in its track.
Lightinset 0 0 0 1px rgb(0 0 0 / 0.08)
Darkinset 0 0 0 1px rgb(255 255 255 / 0.1)
shadow-ctaAn inner hairline on a filled button. No gloss and no drop.
Lightinset 0 0 0 1px rgb(0 0 0 / 0.08)
Darkinset 0 0 0 1px rgb(255 255 255 / 0.1)
shadow-primaryThe same inner hairline, for any other surface filled with the primary.