list-style-type

Class Description

list

Changes the bullet or number marker style for list items via list-style-type.

CSS Rules

.list {
  list-style-type: var(--list);
}

Usage

The .list class is flagged as a value-driven selector. The variable --list is required.
<element class="list" style="--list: /* value */;" />

Responsive

Prefix .list utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:list" style="--md-list: /* value */;" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="list:hover" style="--list-hover: /* value */;" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="list:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before list::before" style="--list-before: /* value */;" />

<element class="content-after list::after" style="--list-after: /* value */;" />

Shorthand

Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime processes this for you. Unlike :hover that is generating CSS on the fly, shorthand only splits it and appends the corresponding style.

<!-- Input -->
<element class="list=value" />

<!-- Output -->
<element class="list" style="--list: value;" />

CLS Alert

This feature may cause CLS (Cumulative Layout Shift). Make sure to include a z-not-ready class in your <head> tag.

.list Changes the bullet or number marker style for list items via list-style-type.

list-decimal

Sets list-style-type: decimal. Numbered list.

CSS Rules

.list-decimal {
  list-style-type: decimal;
}

Usage

<element class="list-decimal" />

Responsive

Prefix .list-decimal utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:list-decimal" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="list-decimal:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="list-decimal:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before list-decimal::before" />

<element class="content-after list-decimal::after" />
.list-decimal Sets list-style-type: decimal. Numbered list.

list-disc

Sets list-style-type: disc. Standard bulleted list.

CSS Rules

.list-disc {
  list-style-type: disc;
}

Usage

<element class="list-disc" />

Responsive

Prefix .list-disc utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:list-disc" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="list-disc:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="list-disc:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before list-disc::before" />

<element class="content-after list-disc::after" />
.list-disc Sets list-style-type: disc. Standard bulleted list.

list-none

Sets list-style-type: none. Removes list markers.

CSS Rules

.list-none {
  list-style-type: none;
}

Usage

<element class="list-none" />

Responsive

Prefix .list-none utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:list-none" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="list-none:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="list-none:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before list-none::before" />

<element class="content-after list-none::after" />
.list-none Sets list-style-type: none. Removes list markers.