JSFiddle - React, Tailwind, and code Playground
HTML
<div class="error">
<input type='checkbox'><label>Some label</label><br />
</div>
CSS
.error input[type=checkbox] {
border: 2px solid yellow;
outline: 2px solid #c00;
}
<div class="error">
<input type='checkbox'><label>Some label</label><br />
</div>
.error input[type=checkbox] {
border: 2px solid yellow;
outline: 2px solid #c00;
}