1. Tipografía
  2. list-style-type

Tipografía

list-style-type

Utilidades para controlar el estilo del marcador de una lista.

ClaseEstilos
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>;

Ejemplos

Ejemplo básico

Usa utilidades como list-disc y list-decimal para controlar el estilo de los marcadores en una lista:

list-disc
  • Now this is a story all about how, my life got flipped-turned upside down
  • And I'd like to take a minute just sit right there
  • I'll tell you how I became the prince of a town called Bel-Air
list-decimal
  • Now this is a story all about how, my life got flipped-turned upside down
  • And I'd like to take a minute just sit right there
  • I'll tell you how I became the prince of a town called Bel-Air
list-none
  • Now this is a story all about how, my life got flipped-turned upside down
  • And I'd like to take a minute just sit right there
  • I'll tell you how I became the prince of a town called Bel-Air
<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>

Usando un valor personalizado

Usa la sintaxis list-[<value>] para establecer el marker basado en un valor completamente personalizado:

<ol class="list-[upper-roman] ...">
<!-- ... -->
</ol>

Para variables CSS, también puedes usar la sintaxis list-(<custom-property>) :

<ol class="list-(--my-marker) ...">
<!-- ... -->
</ol>

Esto es solo un atajo para list-[var(<custom-property>)] que agrega la función var() por ti automáticamente.

Responsive design

Prefija una utilidad list-style-type con una variante de breakpoint como md: para aplicar la utilidad solo en tamaños de pantalla medium y superiores:

<ul class="list-none md:list-disc ...">
<!-- ... -->
</ul>

Aprende más sobre el uso de variantes en la documentación de variantes.

Copyright © 2025 Tailwind Labs Inc.·Política de Marca Registrada