Elevation 1 (text buttons, chips)
- Input
- dp: 1
- Expected output
- box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 1px 3px rgba(0,0,0,.1);
Minimum perceivable elevation. Used for low-emphasis elements.
Material Design box-shadow CSS
Material Design 3 uses a system of six elevation levels (0–5) expressed as dp values. Each level combines shadows from two distinct light angles: a direct light shadow (umbra) and an ambient light shadow (penumbra). The CSS implementation always uses at least two box-shadow layers to reproduce this effect faithfully. This page explains the exact values for each level.
Minimum perceivable elevation. Used for low-emphasis elements.
Standard for cards and floating action buttons in their default state.
Yes. CSS allows as many layers as needed, separated by commas. Each layer has its own offset, blur, spread and color parameters, enabling much richer effects than a single shadow.
No. MD3 uses a combination of box-shadow with a surface tint color overlay based on the primary color. In dark interfaces, the overlay is more visible than the shadow. For faithful replication, combine box-shadow with an adjusted `background-color`.
Yes. Define `--shadow-1`, `--shadow-2` etc. as custom properties on `:root`. This lets you change the entire system from a single point — and adapt for dark mode with `prefers-color-scheme`.
box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.25);CSS is generated locally in your browser.