JSFiddle - React, Tailwind, and code Playground
HTML
<div class="test">
</div>
<div class="test2">
</div>
CSS
div {
margin: 10px auto;
width: 300px;
height: 300px;
background-color: #ddd;
}
.test {
box-sizing: border-box;
border: 10px dotted rgba(255,0,0, .5);
}
.test2 {
border: 10px dotted rgba(0,0,255, .5);
}