Shadows & Effects
Our shadow system uses the “Mist” effect - softer, single-layer shadows for subtle depth.
Shadow Scale
Six shadow sizes from subtle to prominent
shadow-xs
Extra small shadow
shadow-xs
shadow-sm
Small shadow
shadow-sm
shadow
Base shadow
shadow
shadow-md
Medium shadow
shadow-md
shadow-lg
Large shadow
shadow-lg
shadow-xl
Extra large shadow
shadow-xl
Usage Examples
When to use each shadow level
shadow-xs
Subtle hover states, very light elevation
shadow-sm
Input fields, small cards, list items
shadow
Default cards, buttons in hover state
shadow-md
Elevated cards, dropdowns, tooltips
shadow-lg
Modals, popovers, floating panels
shadow-xl
Major overlays, drawer panels, emphasized content
Code Examples
How to apply shadows in your components
Static Shadow
<div className="shadow-md bg-background-default rounded-2xl p-6">
Content with shadow
</div>Hover Shadow Transition
<div className="shadow hover:shadow-lg transition-shadow duration-200">
Interactive card with shadow transition
</div>Focus Ring
<button className="focus-visible:ring-2 focus-visible:ring-indigo-500">
Accessible focus state
</button>Guidelines
Best practices for using shadows
✓
Use shadows to indicate elevation
Higher elevation = stronger shadow
✓
Transition shadows on hover
Use transition-shadow for smooth effects
✗
Don’t overuse heavy shadows
Keep most content at shadow-sm or shadow level
✗
Don’t stack heavy shadows on bordered surfaces
Cards pair a 1px border with shadow-sm; keep anything above that for floating layers