menu MDUI Documentation
color_lens
view_carousel
JavaScript Plug-in
keyboard_arrow_down
local_mall
Resources
keyboard_arrow_down

shadow

MDUI provides 24 shadows with different depths, which can meet the needs of any scene in Material Design.

Add shadow

Just add the class on the element .mdui-shadow-[1-24], The element will have a corresponding depth of shadow. Add class .mdui-shadow-0 You can remove the shadow.

Please drag the slider below to observe the changes of shadows at different depths.

1

Deepen the shadow when hovering

Add class to any element .mdui-hoverable, You can make the shadow darker when the mouse is hovering.

Example
<div class="mdui-card mdui-hoverable">
  <div class="mdui-card-media">
    <img src="card.jpg"/>
  </div>
  <div class="mdui-card-actions">
    <button class="mdui-btn mdui-ripple">action 1</button>
    <button class="mdui-btn mdui-ripple">action 2</button>
  </div>
</div>

List of CSS class names

Class name effect
.mdui-shadow-0 Remove shadow
.mdui-shadow-[1-24] Add shadows of different depths
.mdui-hoverable Deepen the shadow when hovering
Set document theme

Theme color

Main color

Accent color