CSS: list
.instui-list — A list with token-driven item spacing.
Sets its own padding-inline-start for list indentation; chaining a -p*/-padding* spacing utility modifier overrides that built-in value. See the list.item member for the individual items.
Source: list.css
Usage
css
@import "@pantoken/components/components.css";
@import "@pantoken/components/list.css";Examples
html
<ul class="instui-list">
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>Structure
text
.instui-list
li (0..n)flowchart TD
n0[".instui-list"]:::cssdoc-root
n1("li"):::cssdoc-part
n0 -->|0..n| n1
classDef cssdoc-root stroke-width:1px;
classDef cssdoc-part stroke-width:1px;
classDef cssdoc-slot stroke-width:1px;
classDef cssdoc-component stroke-width:1px;
Modifiers
| Modifier | Description |
|---|---|
.-inline | Lay items out inline (horizontal). |
.-size-large | Large. @affects list.item — Scales the item spacing to match. Long-form alias of -size-lg. |
.-size-lg | Large. @affects list.item — Scales the item spacing to match. |
.-size-md | Medium (default). @affects list.item — Scales the item spacing to match. |
.-size-medium | Medium (default). @affects list.item — Scales the item spacing to match. Long-form alias of -size-md. |
.-size-sm | Small. @affects list.item — Scales the item spacing to match. |
.-size-small | Small. @affects list.item — Scales the item spacing to match. Long-form alias of -size-sm. |
.-unstyled | Remove markers and padding. |
Tokens consumed
| Token | Type | Value |
|---|---|---|
--instui-component-list-item-color | <color> | LightDarklight-dark(#273540, #ffffff) |
--instui-component-list-item-font-family | [ <font-family-name> | <generic-font-family> ]# | Atkinson Hyperlegible Next, "Helvetica Neue", Helvetica, Arial, sans-serif |
--instui-component-list-item-font-size-large | <length> | 1.25rem |
--instui-component-list-item-font-size-medium | <length> | 1rem |
--instui-component-list-item-font-size-small | <length> | 0.875rem |
--instui-component-list-item-font-weight | <integer> | 400 |
--instui-component-list-item-line-height | <percentage> | 150% |
--instui-component-list-item-spacing-medium | <length> | 1.5rem |
--instui-component-list-list-padding | <length> | 2.25rem |