stnd.build

Lists

Lists

Content

Replaces native <ul>/<ol> markers with custom absolutely-positioned bullets and tabular-nums counters, and spaces items apart via li + li. Four density/marker classes are opt-in.

Name Description
.no-bullet Hides markers and removes inline padding; cascades to nested lists.
.tight Tightens list item vertical spacing to --space-d3.
.compact Tightens list item vertical spacing to --space-d2.
.relaxed Widens list item vertical spacing to --space-2.
.task-list-item Applied to task list items (- [ ]), displaying interactive or static checkbox.
.task-field Inline badge representation for Dataview-style [key:: value] metadata.

What - [ ] Ship it [priority:: 1] becomes

<li class="task-list-item">
  <input type="checkbox" disabled> Ship it
  <span class="task-field" data-field="priority">priority: 1</span>
</li>

Live

  • Ship it priority: 1
  • Unordered, ordered and nested

    <ul>
      <li>First</li>
      <li>Second
        <ul><li>Nested one</li><li>Nested two</li></ul>
      </li>
      <li>Third</li>
    </ul>
    <ol>
      <li>Step one</li>
      <li>Step two</li>
      <li>Step three</li>
    </ol>
    

    Live

    • First
    • Second
      • Nested one
      • Nested two
    • Third
    1. Step one
    2. Step two
    3. Step three

    Spacing variants

    <div class="grid-3">
      <ul class="tight"><li>tight</li><li>tight</li><li>tight</li></ul>
      <ul class="compact"><li>compact</li><li>compact</li><li>compact</li></ul>
      <ul class="relaxed"><li>relaxed</li><li>relaxed</li><li>relaxed</li></ul>
    </div>
    

    Live

    • tight
    • tight
    • tight
    • compact
    • compact
    • compact
    • relaxed
    • relaxed
    • relaxed

    Without bullets

    <ul class="no-bullet">
      <li>No marker</li>
      <li>No indent
        <ul><li>Nested lists follow</li></ul>
      </li>
    </ul>
    

    Live

    • No marker
    • No indent
      • Nested lists follow

    All classes

    List utilities

    Class Declares
    .no-bullet, .no-bullet ul list-style: none

    Task lists

    Class Declares
    .task-list-item display: none
    .task-field display: inline-flex