Skip to content

list-style-type

Utilities for controlling bullet, decimal, or custom markers on lists.

ISS preview
Iced + ISS preview demonstrating list-style-type
ISS preview for list-style-type
use iss::{list_tw, list_item_tw, tw};
let steps = list_tw(
[list_item_tw(step1, tw!("text-sm")), list_item_tw(step2, tw!("text-sm"))],
tw!("list-decimal list-outside pl-5 gap-1.5"),
);
Tailwind Class CSS Property / Effect iss::typed Builder
list-none list-style-type: none; .list_none()
list-disc list-style-type: disc; .list_disc()
list-decimal list-style-type: decimal; .list_decimal()
list-['->'] list-style-type: '->'; .list_type_custom("->")
  • Use with list_tw; pair with marker:text-* to color markers independently of item text.

list-style-position · list-style-image · content