padding
Utilities for controlling physical and logical inner spacing of an element.
ISS preview

Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let card = container(body).tw(tw!("p-5 md:p-6 bg-zinc-900 rounded-xl"));use iss::typed::*;
let style = IssStyle::new().p(5).md(|s| s.p(6)).bg(palette::ZINC_900);Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
p-<n> / px-<n> / py-<n> |
padding / padding-inline / padding-block; |
.p(4) / .px(4) / .py(2) |
pt-<n> / pr-<n> / pb-<n> / pl-<n> |
padding-top / right / bottom / left; |
.pt(2) / .pr(3) / .pb(2) / .pl(3) |
ps-<n> / pe-<n> |
padding-inline-start / padding-inline-end; |
.ps(4) / .pe(2) |
p-[18px] / px-[1.5rem] |
Arbitrary pixel or rem padding; |
.p_px(18) |
p-(--spacing-card) |
padding: var(--spacing-card); |
.p_var("--spacing-card") |
Behavior Notes
Section titled “Behavior Notes”ps-*andpe-*flip automatically insidedir_rtl(...).
Related Utilities
Section titled “Related Utilities”margin · gap · box-sizing