JSFiddle - React, Tailwind, and code Playground

by Paul Leech

HTML

<select class="test">
    <option>Test</option>
    <option>More Test</option>
    <option>Even More Test</option>
</select>

CSS

.test option:nth-of-type(odd){
    color: #ff0000;
    background:#ccc;
}

.test option:nth-of-type(even){
    color: #00ff00;
    background:#555;
}