0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
<ul><li>First item in the list</li><li>Second item in the list</li><li>Third item in the list</li><li>Fourth item in the list</li></ul>
In Ordered List
Ordered list items
123456
<ol><li>First step in the process</li><li>Second step in the process</li><li>Third step in the process</li><li>Fourth step in the process</li></ol>
Rich Content
List items can contain any flow content, not just text.
Links in list items
12345
<ul><li><ahref="#">Link to page one</a></li><li><ahref="#">Link to page two</a></li><li><ahref="#">Link to page three</a></li></ul>
Multiple elements in list items
12345678910
<ul><li><strong>Feature Name</strong><p>Description of the feature with supporting text.</p></li><li><strong>Another Feature</strong><p>More descriptive text about this feature.</p></li></ul>
Nesting Lists
List items can contain nested lists to create hierarchical structures. The nested list must be inside the <li> element.
<ol><li>Step one: gather materials<ul><li>Paper</li><li>Scissors</li><li>Glue</li></ul></li><li>Step two: cut the paper</li><li>Step three: assemble</li></ol>
Value Attribute (Ordered Lists)
In ordered lists, use the valueattribute to override the item's number. Subsequent items continue from that value.
Value attribute on list items
1234567
<ol><li>Regular item (1)</li><livalue="10">Jumps to 10</li><li>Continues at 11</li><livalue="20">Jumps to 20</li><li>Continues at 21</li></ol>
Note: The valueattribute only applies to <li> elements within <ol>. It has no effect in <ul>.
Markers
VB styles list items through two list-level hooks. Both target only the list's direct<li> children, so a nested list keeps its own bullets or numbers.
data-marker="check | arrow | dash | star" on a <ul> replaces the bullet through li::marker. The arrow swaps to a left-pointing glyph in right-to-left text. See custom markers on <ul>.
class="meta" lays the items out in a row and puts a separator before each item after the first (li + li::before). data-separator="pipe | dash | slash" changes the separator.
A nested list keeps its own numbering
12345678910111213141516
<uldata-marker="check"><li>Install the package</li><li>Configure the build<ol><li>Add the CSS entry</li><li>Add the JS entry</li></ol></li><li>Deploy</li></ul><ulclass="meta"><li>Jane Smith</li><li><timedatetime="2024-01-15">Jan 15, 2024</time></li><li>5 min read</li></ul>
Accessibility
Screen Reader Behavior
Announced as "list item" with position (e.g., "bullet, list item 2 of 5")
In ordered lists, the number is announced
Nested lists announce their nesting level when the reader enters them
Users can navigate between items with keyboard shortcuts
Best Practices
Always place <li> inside a proper list container
Keep list items focused on single concepts
Use meaningful content — avoid empty list items
Limit nesting depth to 3 levels for usability
Safari / VoiceOver
Safari with VoiceOver can stop announcing a list as a list when it has list-style: none. VB's .inline, .unstyled and .meta lists all set that, so add role="list" where the list structure matters to the reader:
Wrong: Placing block elements directly between <ul>/<ol> and <li>
Wrong: Empty list items for spacing
CSS Properties
Context
Property
Value
Adjacent items (:where(li + li))
margin-block-start
var(--size-xs)
Nested list (li > ul, li > ol)
margin-block-start
var(--size-xs)
Direct children of .inline, .unstyled and .meta lists
margin-block-start
0
Direct children of any [data-layout] list (stack, cluster, grid, …)
margin-block-start
0
ul[data-marker] > li
::markercontent, color
Character token (--marker-check, --marker-arrow, …)
.meta > li + li
::beforecontent
var(--sep-list) (middle dot) or the data-separator token
The adjacent-item margin is wrapped in :where(), so it has zero specificity: any plain author rule such as li { margin: 0 } overrides it without a class or !important. The flex and grid resets exist because a block margin in a row or grid shows up as a cross-axis offset or a doubled gap.