list-disc/decimal/none/inside/outside plus list-image-[]. This family contains 7 generated classes in Nakshora 3.1.

Classes#

ClassGenerated CSS
list-insidelist-style-position: inside;
list-outsidelist-style-position: outside;
list-nonelist-style-type: none;
list-disclist-style-type: disc;
list-decimallist-style-type: decimal;
list-image-nonelist-style-image: none;
list-itemdisplay: list-item;

Example#

example
html
<ul class="list-disc pl-6 space-y-1">
  <li>Disc bullets, indented</li>
</ul>

Responsive & variants#

Every class here accepts screen prefixes (xxs:5xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.

Best practices#

  • preflight resets lists — add list-disc pl-6 to restore
  • list-inside moves the marker inside the text box

colors/index|Text color · utilities/typography/font-size|Font size