JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app>
<form novalidate>
<input name="formvalue" type="text" ng-model="formvalue" required />
<input type="submit" />
</form>
</div>
CSS
input.ng-dirty.ng-invalid { background-color: red }