JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
  <li>Test</li>
  <li>Test2</li>
  <li>Test3</li>
  <li>Test4</li>
</ul>

CSS

li:nth-child(even) {
    color: red;
}

li:nth-child(3) {
    color: blue;
}