Usage
--list-spacingand --list-item-spacingfor vertical rhythm --list-indentand --list-indent-nestedfor indentation hierarchy --list-marker-colorand --list-marker-gapfor marker readability --list-marker-contentor --list-marker-unorderedto change bullet shapes
--content-spacing--list-marker-content--list-marker-nested-contentnormal--list-marker-unordered--list-marker-ordered
Tokens
--list-spacing | margin-top | var(--content-spacing) |
--list-spacing-nested | margin-top | calc(var(--content-spacing) * 0.25) |
--list-indent | calc(var(--content-spacing) * 0.75) | |
--list-indent-nested | calc(var(--content-spacing) * 0.25) | |
--list-item-spacing | margin-bottom | calc(var(--list-spacing) * 0.25) |
--list-marker-gap | var(--space-2) | |
--list-marker-color | var(--text-color-muted) | |
--list-marker-color-dark | var(--text-color-muted-dark) | |
--list-marker-content | list-style-type | normal |
--list-marker-nested-content | list-style-type | normal |
--list-marker-unordered | list-style-type | disc |
--list-marker-ordered | list-style-type | decimal |
--list-marker-nested-unordered | circle | |
--list-marker-nested-ordered | lower-alpha |
Examples
Default Lists
:root {
/* No design token overrides */
}Unordered Lists
First item with default bullet styling Second item demonstrating spacing Third item with nested content: Nested item with automatic indentation Another nested item Third level nesting: Deep nested item
Ordered Lists
First numbered item Second item with proper numbering Third item with nested content: Nested numbered item Another nested numbered item
Compact Lists
:root {
--list-indent: calc(var(--content-spacing) * 0.5);
--list-item-spacing: var(--space-1);
--list-marker-gap: var(--space-1);
}Mercury (closest to Sun, 88-day orbit) Venus (hottest planet, 462°C surface) Earth (only known planet with life) Mars (red color from iron oxide)
Spacious Lists
:root {
--list-indent: calc(var(--content-spacing) * 1.5);
--list-item-spacing: var(--space-8);
--list-marker-gap: var(--space-4);
}Conduct literature review of existing research Design experimental methodology and protocols Collect and analyze data using statistical methods Prepare manuscript for peer review
Minimal Lists
:root {
--list-indent: calc(var(--content-spacing) * 0.5);
--list-item-spacing: var(--space-1);
--list-marker-content: '• ';
--list-marker-nested-content: '◦ ';
--list-marker-color: var(--color-accent);
}Python pandasnumpy
R ggplot2dplyr
Julia DataFrames.jlPlots.jl
Custom Markers
:root {
--list-marker-ordered: upper-roman;
--list-marker-nested-content: '▸ ';
--list-marker-nested-ordered: lower-alpha;
}Research Design Hypothesis formulation Variable identification
Data Collection Sample selection Measurement protocols
Tufte-Style Lists
:root {
--list-marker-content: '– ';
--list-marker-nested-content: '– ';
--list-marker-color: var(--text-color-muted);
--list-indent: calc(var(--content-spacing) * 0.5);
--list-item-spacing: calc(var(--content-spacing) * 0.15);
}Introduction and background Methods and materials Study design Data collection
Results and discussion Conclusions
Tips
--list-marker-content--list-marker-nested-contentnormallist-style-type
--list-marker-ordered--list-marker-nested-ordered<ol>
--list-marker-gap