List Style Type
Controls the style of a list.
| Class | Style |
|---|---|
lst-c | list-style-type: circle; |
lst-d | list-style-type: disc; |
lst-s | list-style-type: square; |
Disc
Initial value
The list items will be marked with solid circles, which is the default style for unordered lists.
<div class="bg-indigo-1 p-4 rad-1"> <ul class="bg-white lsp-o lst-d p-4 pl-6 rad-1"> <li class="tc-slate">Butter 🧈</li> <li class="tc-slate">Egg 🥚</li> <li class="tc-slate">Milk 🥛</li> </ul></div>This example showcases various list-style-types utilities:
- The circle style marks list items with hollow circles.
- The disc style marks list items with solid circles (default for unordered lists).
- The square style marks list items with solid squares.
<div class="bg-indigo-1 p-4 rad-1"> <ul class="bg-white lsp-o lst-c p-4 pl-6 rad-1"> <li class="tc-slate">Butter 🧈</li> <li class="tc-slate">Egg 🥚</li> <li class="tc-slate">Milk 🥛</li> </ul></div>Square
The list items will be marked with solid squares, providing a different visual style for the list.
<div class="bg-indigo-1 p-4 rad-1"> <ul class="bg-white lsp-o lst-s p-4 pl-6 rad-1"> <li class="tc-slate">Butter 🧈</li> <li class="tc-slate">Egg 🥚</li> <li class="tc-slate">Milk 🥛</li> </ul></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Using media queries
You can combine responsive breakpoints like sm:lst-*, md:lst-*, lg:lst-*, and xxl:lst-* to allow targeting specific utilities in different viewports.
Using hover states
Alternatively, you can apply :hover by using h:lst-* utility to override elements and change their values when hovering over them.