Skip to content

stroke

Utilities for controlling the outline stroke color of vector SVG scenes.

ISS preview
Iced + ISS preview demonstrating stroke
ISS preview for stroke
use iss::{svg_tw, tw, SvgScene};
let check = SvgScene::new(24.0, 24.0).path("M5 13l4 4L19 7");
let icon = svg_tw(check, tw!("size-6 fill-none stroke-emerald-400 stroke-2"));
Tailwind Class CSS Property / Effect iss::typed Builder
stroke-<color>-<shade> stroke: <palette>; .stroke(palette::SKY_400)
stroke-sky-400/80 Alpha-modified vector stroke; .stroke(palette::SKY_400.alpha(0.8))
stroke-none / current / inherit / transparent Keyword SVG strokes; .stroke_none() / .stroke_current()
stroke-(--color-fg) stroke: var(--color-fg); .stroke_var("--color-fg")

fill · stroke-width · color