EffectsBox Shadow

Box Shadow

Control the box shadow of an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

xs
sm
md
lg
<div class="d-g g-16 gtc-1 sm:gtc-4">
<div class="ai-c bg-white bsh-xs d-f d-18 jc-c c-slate">xs</div>
<div class="ai-c bg-white bsh-sm d-f d-18 jc-c c-slate">sm</div>
<div class="ai-c bg-white bsh-md d-f d-18 jc-c c-slate">md</div>
<div class="ai-c bg-white bsh-lg d-f d-18 jc-c c-slate">lg</div>
</div>

Responsive Design

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:bsh-[value]
Small640px
md:bsh-[value]
Medium768px
lg:bsh-[value]
Large1024px
xxl:bsh-[value]
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:bsh-[value]