Skip to content

stroke-width

Utilities for controlling the stroke thickness of vector SVG paths and shapes.

ISS preview
Iced + ISS preview demonstrating stroke-width
ISS preview for stroke-width
use iss::{svg_tw, tw, SvgScene};
let icon = svg_tw(scene, tw!("size-6 fill-none stroke-zinc-200 stroke-[1.75]"));
Tailwind Class CSS Property / Effect iss::typed Builder
stroke-0 / stroke-1 / stroke-2 stroke-width: 0 / 1 / 2; .stroke_0() / .stroke_width(2)
stroke-<n> Dynamic numeric stroke width; .stroke_width(1.5)
stroke-[3px] Arbitrary pixel stroke width; .stroke_width_px(3)

stroke · fill