Foundations

Box Shadow

Box shadows add depth to cards, forms, modals, pagination, and highlighted content. Choose the tab that matches your starter.

Shadow tokens

Bootstrap shadow tokens are defined in assets/css/core.css.

LevelTokenDefault
Small--kf-box-shadow-sm0 2px 6px -3px rgba(0, 0, 0, 0.08)
Default--kf-box-shadow0 8px 10px -6px rgba(0, 0, 0, 0.08)
Large--kf-box-shadow-lg0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05)

Utility classes

Use these helper classes when you want to apply a starter shadow to an element.

LevelClassRule
Small.shadow-smbox-shadow: var(--kf-box-shadow-sm) !important;
Default.shadowbox-shadow: var(--kf-box-shadow) !important;
Large.shadow-lgbox-shadow: var(--kf-box-shadow-lg) !important;
<div class="shadow-lg">
  ...
</div>

Customize shadows

Update the token values in assets/css/core.css. Utility classes and starter components using those tokens will follow the new shadow style.

Section Used

...

Sections copied so far!