Modules / Styling

Styling: layered box shadows

Multiple box shadows

Give one element any number of box shadows: layered, soft, inner and outer together. The field takes the full CSS value, with breakpoints and hover.

#10 of 39 modules by votes

  • On by default
  • Needs Bricks 2.4 or newer
  • Tested with Bricks 2.4.3
Recording: someone types three shadows into Box shadows (layered), and the flat card lifts like the two beside it.Recorded in Bricks 2.4.3

How to use it

  1. Select any element and open Style > Border.

  2. Leave Bricks' Box shadow empty.

  3. In Box shadows (layered), type the shadows as one CSS value, separated by commas. For example:

    0 1px 2px rgb(0 0 0 / .08), 0 8px 24px rgb(0 0 0 / .12)
    
  4. To change the shadows on hover or at a breakpoint, switch to that state or breakpoint and enter a new value.

Or pick a Shadow preset: Soft, Layered, Long, Glow (on dark backgrounds) or Inner. Shadows you type replace the preset. Off (at this breakpoint / state) removes a preset at one breakpoint or state.

CSS variables from the Style Manager work inside the value.

Where it appears in Bricks

Style tab > Border, on every element, right after Bricks' own Box shadow. It works in global classes too.

Limits

  • Use Box shadows (layered) instead of Box shadow, not together with it. With both set, only one wins.
  • The field takes plain text. It does not take dynamic data, and it is not offered for translation in WPML or Polylang.

Settings

Bricks > Kiln, open the module's settings:

  • Add these controls to: All elements (the default), Layout and media elements, or The elements ticked below. Bricks loads every control once per element type into the builder, so fewer elements keep the builder lighter. With every Kiln style module set to layout and media elements, the builder loads about 40% less control data. Values you already set on other elements stay on the page; the builder stops showing those fields there.

Requirements

Bricks 2.4 or newer.