Skip to content

text-shadow

Utilities for painting Tailwind CSS v4 Gaussian-blurred shadows directly behind text glyphs.

ISS preview
Iced + ISS preview demonstrating text-shadow
ISS preview for text-shadow
use iced::widget::text;
use iss::{tw, TwExt};
let hero = text("ISS").tw(tw!("text-4xl font-extrabold text-white text-shadow-lg text-shadow-blue-500/40"));
Tailwind Class CSS Property / Effect iss::typed Builder
text-shadow-2xs / xs / sm / md / lg Tailwind v4 text-shadow presets; .text_shadow_md()
text-shadow-none / initial Clear text shadow; .text_shadow_none()
text-shadow-sky-500/50 Colored + alpha text shadow; .text_shadow_color(palette::SKY_500.alpha(0.5))
text-shadow-[0_2px_8px_rgba(0,0,0,0.6)] Arbitrary text shadow; .text_shadow_custom(0.0, 2.0, 8.0, palette::BLACK.alpha(0.6))

box-shadow · color · drop-shadow