JSFiddle - React, Tailwind, and code Playground
HTML
<div class="test">
<ol>
<li>содержание</li>
<li>содержание</li>
<li>содержание</li>
</ol>
</div>
CSS
.test ol {
list-style: none;
counter-reset: point
}
.test ol li {
position: relative;
padding-left: 25px;
counter-increment: point 1
}
.test ol li::before {
font-size: 11px;
font-weight: bold;
position: absolute;
top: 4px;
left: 0;
width: 20px;
padding: 0;
content: counter(point);
text-align: center;
color: #fff;
background: brown
}