Utilities for controlling the marker style of a list.
2025-03-29
Written by: tdtc
| Class | Styles |
|---|---|
| list-disc | list-style-type: disc; |
| list-decimal | list-style-type: decimal; |
| list-none | list-style-type: none; |
list-(<custom-property>) | list-style-type: var(<custom-property>); |
list-[<value>] | list-style-type: <value>; |
list-(<custom-property>) | list-style-type: var(<custom-property>); |
list-[<value>] | list-style-type: <value>; |
Please use “none” to replace:
list-none
Use utilities like list-disc and list-decimal to control the style of the markers in a list:
<ul class="list-disc">
<li>Now this is a story all about how, my life got flipped-turned upside down</li>
<!-- ... -->
</ul>
<ol class="list-decimal">
<li>Now this is a story all about how, my life got flipped-turned upside down</li>
<!-- ... -->
</ol>
<ul class="list-none">
<li>Now this is a story all about how, my life got flipped-turned upside down</li>
<!-- ... -->
</ul>
Use the list-[ syntax to set the marker based on a completely custom value:
<ol class="list-[upper-roman] ...">
<!-- ... -->
</ol>