JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr><td></td></tr>
<tr><td></td></tr>
<tr class="space"><td>space</td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr class="space"><td>space</td></tr>
<tr><td></td></tr>
<tr class="space"><td>space</td></tr>
<tr class="space"><td>space</td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
</table>
CSS
tr:not(.space):nth-of-type(even) { background-color:#E6E0C5; }
tr:not(.space):nth-of-type(odd) { background-color:#FFF; }
.space~.space~.space~.space
~tr:not(.space):nth-of-type(even) { background-color:#E6E0C5; }
.space~.space~.space~.space
~tr:not(.space):nth-of-type(odd) { background-color:#FFF; }
.space~.space~.space~.space~.space
~tr:not(.space):nth-of-type(odd) { background-color:#E6E0C5; }
.space~.space~.space~.space~.space
~tr:not(.space):nth-of-type(even) { background-color:#FFF; }
.space {
background: #232323;
color: yellow;
text-align: center;
}
td {
border: 1px solid black;
width: 100px;
height: 25px;
}
JavaScript
// selector черезстрочной подсветки без учета определенного класса