List Style Type
Controls the style of a list.
Widely available
This feature is well established and works across many devices and browser versions.
| 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.
- Butter 🧈
- Egg 🥚
- Milk 🥛
<ul class="lsp-o lst-d"> <li class="tc-slate">Butter 🧈</li> <li class="tc-slate">Egg 🥚</li> <li class="tc-slate">Milk 🥛</li></ul>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.
- Butter 🧈
- Egg 🥚
- Milk 🥛
<ul class="lsp-o lst-c"> <li class="tc-slate">Butter 🧈</li> <li class="tc-slate">Egg 🥚</li> <li class="tc-slate">Milk 🥛</li></ul>Square
The list items will be marked with solid squares, providing a different visual style for the list.
- Butter 🧈
- Egg 🥚
- Milk 🥛
<ul class="lsp-o lst-s"> <li class="tc-slate">Butter 🧈</li> <li class="tc-slate">Egg 🥚</li> <li class="tc-slate">Milk 🥛</li></ul>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Targeting different viewports
You can combine responsive breakpoints like sm:lst-*, md:lst-*, lg:lst-*, and xxl:lst-* to allow targeting specific utilities in different viewports.
Targeting hover states
Alternatively, you can apply :hover by using h:lst-* utility to override elements and change their values when hovering over them.