TypographyList Style Type

List Style Type

Controls the style of a list.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
lst-clist-style-type: circle;
lst-dlist-style-type: disc;
lst-slist-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.