background-size
Utilities for controlling the rendered dimensions of background images and gradient tiles.
ISS preview

Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let grid_bg = container(body).tw(tw!("bg-repeat bg-[length:24px_24px]"));use iss::typed::*;
let style = IssStyle::new().bg_repeat().bg_size_px(24, 24);Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
bg-auto |
background-size: auto; |
.bg_auto() |
bg-cover |
background-size: cover; |
.bg_cover() |
bg-contain |
background-size: contain; |
.bg_contain() |
bg-[length:120px_80px] |
background-size: 120px 80px; |
.bg_size_px(120, 80) |
Behavior Notes
Section titled “Behavior Notes”- Use
bg-[length:...]for arbitrary dimensions so ISS disambiguates them from arbitrary colors.