JSFiddle - React, Tailwind, and code Playground

HTML

<a class="test">a</a>
<a class="b">b</a>

CSS

a:not([class^="test"]) {
  color: orange;
}