Box Shadow
Set the box shadow for an element.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Outset
Use the bs-o-* utilities to apply outset shadows.
xs
sm
md
lg
<div class="d-g g-16 gtc-1 sm:gtc-4"> <div class="d-f ai-c jc-c w-18 h-18 bg-white c-slate bs-o-xs">xs</div> <div class="d-f ai-c jc-c w-18 h-18 bg-white c-slate bs-o-sm">sm</div> <div class="d-f ai-c jc-c w-18 h-18 bg-white c-slate bs-o-md">md</div> <div class="d-f ai-c jc-c w-18 h-18 bg-white c-slate bs-o-lg">lg</div></div>Inset
Use the bs-i-* utilities to apply inset shadows.
xs
sm
md
lg
<div class="d-g g-16 gtc-1 sm:gtc-4"> <div class="d-f ai-c jc-c w-18 h-18 bg-white c-slate bs-i-xs">xs</div> <div class="d-f ai-c jc-c w-18 h-18 bg-white c-slate bs-i-sm">sm</div> <div class="d-f ai-c jc-c w-18 h-18 bg-white c-slate bs-i-md">md</div> <div class="d-f ai-c jc-c w-18 h-18 bg-white c-slate bs-i-lg">lg</div></div>Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
sm:bs-o-*Small≥640px
md:bs-o-*Medium≥768px
lg:bs-o-*Large≥1024px
xxl:bs-o-*Extra Large≥1536px
sm:bs-i-*Small≥640px
md:bs-i-*Medium≥768px
lg:bs-i-*Large≥1024px
xxl:bs-i-*Extra Large≥1536px
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:bs-o-*Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:bs-i-*