JSFiddle - React, Tailwind, and code Playground

by John Doe

HTML

<input type="email" placeholder="valid mail" value="" />

CSS

input:not([value=""]) {
  background-color: tomato;
}