JSFiddle - React, Tailwind, and code Playground

by karanmhatre

HTML

<ul>
    <li class="tab">Only Tab</li>
    <li class="tab tab1">Tab with class</li>
</ul>

CSS

li.tab {
    color: black;
}

li.tab:not(.tab1):hover {
    color: red;
}