Overview
box-shadow is supported by the Skelementor importer, but bundled Skelementor shadow-* utility classes are not currently shipped in skelementor-utilities.css. Define the classes below in your own CSS when you need a semantic shadow scale.
| Class | Box shadow (CSS) | Usage |
|---|---|---|
.shadow-sm | box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); | Subtle lift for cards and inputs |
.shadow-md | box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12); | Default elevated surfaces |
.shadow-lg | box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16); | Strong depth for heroes and modals |
.shadow-xl | box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); | Extra-large elevation (matches the preview scale) |
.shadow-panel | box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18); | Large feature panels |
Example
Suggested Pattern
Usage
Card Surface
Large Feature Panel
Best Practices
- Prefer a small semantic shadow scale instead of many one-off values
- Keep shadows subtle on dense UI and stronger on isolated feature surfaces
- Combine shadows with border radius and background color so elevation feels intentional
- Test in both light and dark themes because the same shadow can feel much heavier in dark surfaces
Related Utilities
Opacity
Pair shadow and opacity for layered states
Filters
Pair box-shadow with the shipped filter utility families
Custom CSS
Import your own custom shadow utilities through Skelementor
Borders
Combine radius and border styling with shadow depth

