fill
Utilities for controlling the interior fill color of vector SVG scenes rendered with svg_tw.
ISS preview

Examples
Section titled “Examples”use iss::{svg_tw, tw, SvgScene};
let scene = SvgScene::new(24.0, 24.0).circle(12.0, 12.0, 9.0);let icon = svg_tw(scene, tw!("size-8 fill-blue-500/25 stroke-blue-400 stroke-2"));use iss::typed::*;
let icon = svg_tw(scene, IssStyle::new().size(8).fill(palette::BLUE_500.alpha(0.25)).stroke(palette::BLUE_400).stroke_width(2));Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
fill-<color>-<shade> |
fill: <palette>; |
.fill(palette::BLUE_500) |
fill-sky-500/30 |
Alpha-modified vector fill; |
.fill(palette::SKY_500.alpha(0.3)) |
fill-none / current / inherit / transparent |
Keyword SVG fills; |
.fill_none() / .fill_current() |
fill-[#2563eb] / fill-(--color-primary) |
Arbitrary and @theme fills; |
.fill_var("--color-primary") |
Behavior Notes
Section titled “Behavior Notes”- Use
svg_tworsvg_handle_twto apply CSSfill-*andstroke-*classes to vector icons.