JSFiddle - React, Tailwind, and code Playground
HTML
<ol class="cyr">
<li>Пункт 1
<ol>
<li>Item 1
<ol>
<li>Подпункт 1</li>
<li>Подпункт 2</li>
</ol>
</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
</ol>
</li>
<li>Пункт 2</li>
<li>Пункт 3</li>
<li>Пункт 4</li>
<li>Пункт 5</li>
</ol>
SCSS
$upper-cyr-letters: А Б В Г Д Е Ж З И К Л М Н О П Р С Т У Ф Х Ц Ч Ш Э Ю Я;
$lower-cyr-letters: а б в г д е ж з и к л м н о п р с т у ф х ц ч ш э ю я;
ol.cyr {
list-style: none;
& > li {
@each $l in $upper-cyr-letters {
$i: index($upper-cyr-letters, $l);
&:nth-child(#{$i})::before {
content: "#{$l}. ";
}
}
& > ol {
list-style: none;
& > li {
@each $l in $lower-cyr-letters {
$i: index($lower-cyr-letters, $l);
&:nth-child(#{$i})::before {
content: "#{$l}. ";
}
}
/* "We should go deeper" (c). */
}
}
}
}