Typography

Counter

Utilities for sets automatically counter to an element can be grouped separately with a counter reset option.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
counter {options}counter-increment: lists;
counter-resetcounter-reset: lists, mini-step;
classcss
upper-alphacontent: counter(lists, upper-alpha);
lower-alphacontent: counter(lists, lower-alpha);
upper-romancontent: counter(lists, upper-roman);
lower-romancontent: counter(lists, lower-roman);
numbercontent: counter(lists, number);

Usage

...
...
...
...
...
...
...
...
...
<div class="counter-reset">
<div class="counter upper-roman">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
</div>
HTML
.dummy-parent {
@extend
.counter-reset;
}
.dummy-child {
@extend
.counter,
.upper-roman;
}
SCSS