Open this example in the interactive library
Source code
<div
class="demo [counter-reset:step] [&_p]:[counter-increment:step] [&_p]:before:content-[counter(step)_'._']"
>
<p>Plan</p>
<p>Build</p>
<p>Review</p>
</div>
Number a sequence with CSS counters with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div
class="demo [counter-reset:step] [&_p]:[counter-increment:step] [&_p]:before:content-[counter(step)_'._']"
>
<p>Plan</p>
<p>Build</p>
<p>Review</p>
</div>