JSFiddle - React, Tailwind, and code Playground

by Dennis Rasmussen

HTML

<div class="box">
</div>

CSS

* {
  box-sizing: border-box;
}

.box {
  margin: 100px;
  background: #222;
  
  position: relative;
  width: 200px;
  height: 67px;
}

.box::after {
  content: '';
  display: block;
  background: lightblue;
  
  position: absolute;
  width: 24px;
  height: 100%;
  top: 0;
  right: 0;
  transform: skew(-20deg);
  transform-origin: left bottom;
}