JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    div1
</div>
<div class="reset-this">
    reset-this
    <div>
       child inside reset-this
    </div>
</div>
<div>
    div2
</div>

CSS

*:not(.reset-this, .reset-this *) {
    color:red;
}