JSFiddle - React, Tailwind, and code Playground
by slace
HTML
<div>
<p>Should be red.</p>
<p class="classy">Should be black.</p>
<span>Should be green</span>
</div>
CSS
p:not(.classy) { color: red; }
:not(p) { color: green; }
div { color: black; }