JSFiddle - React, Tailwind, and code Playground
by melonangie
HTML
<ul>
<li>John</li>
<li>Jack</li>
<li>Jill</li>
<li>Jason</li>
</ul>
CSS
li:nth-of-type(odd) {
background: #f2f6f8;
background: linear-gradient(top, #f2f6f8 0%, #e0eff9 100%);
color:orange;
}