JSFiddle - React, Tailwind, and code Playground
HTML
<div id="skew"><div class="skew"></div></div>
CSS
/* Skew the container one way */
#skew {
height: 240px;
overflow: hidden;
}
.skew {
background: #000;
display: inline-block;
height: 300px;
width: 500px;
margin-top: 100px;
transform: skew(-8deg, -8deg);
}