Skip to content

box-shadow

Utilities for controlling outer box shadows, colored shadows, inset shadows, and outer/inset rings.

Interactive Iced
Rust · WASM
Iced + ISS preview demonstrating box-shadow
Click presets to toggle live ISS drop shadows in Iced
use iced::widget::container;
use iss::{tw, TwExt};
let btn = container(label).tw(tw!(
"px-4 py-2 bg-blue-600 rounded-xl shadow-lg shadow-blue-600/35 inset-ring inset-ring-white/20"
));
Tailwind Class CSS Property / Effect iss::typed Builder
shadow-2xs / xs / sm / md / lg / xl / 2xl Tailwind v4 elevation shadow presets; .shadow_lg()
shadow-none / shadow-initial Reset or clear box shadow; .shadow_none()
shadow-blue-500/30 Colored + alpha box shadow; .shadow_color(palette::BLUE_500.alpha(0.3))
inset-shadow-2xs / xs / sm / none Tailwind v4 inset box shadows; .inset_shadow_sm()
ring / ring-2 / inset-ring / inset-ring-2 Outer and inset focus rings; .ring_2() / .inset_ring_2()
shadow-[0_8px_24px_rgba(0,0,0,0.4)] Arbitrary custom shadow; .shadow_custom(0.0, 8.0, 24.0, 0.0, palette::BLACK.alpha(0.4))

text-shadow · outline-width