box-shadow
Utilities for controlling outer box shadows, colored shadows, inset shadows, and outer/inset rings.
Interactive Iced
Rust · WASM
Examples
Section titled “Examples”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"));use iss::typed::*;
let style = IssStyle::new() .bg(palette::BLUE_600) .rounded_xl() .shadow_lg() .shadow_color(palette::BLUE_600.alpha(0.35)) .inset_ring() .inset_ring_color(palette::WHITE.alpha(0.2));Class Reference
Section titled “Class Reference”| 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)) |