CSS Shadows to Tailwind

Common elevations map to shadow / shadow-lg. Unique shadows become arbitrary shadow utilities.

Visual compare

Shadow tokens are approximate. If brand elevation is strict, keep an arbitrary shadow or a CSS custom property.

Multiple shadows

Layered box-shadow lists often need arbitrary values. Prefer one intentional arbitrary shadow over three wrong tokens stacked hopefully.

Focus rings vs shadows

Do not replace focus outlines with decorative shadows. Accessibility and elevation are different jobs.

Try it

Open converter

.example { display: flex; gap: 1rem; padding: 1rem; }

Trust note: verify output visually. The converter is a draft helper for developers.