JSFiddle - React, Tailwind, and code Playground

by anothernick

HTML

<div class="left"></div>
<div class="right"></div>

CSS

.left, .right {
    position: relative;
    height: 100px;
    width: 200px;
    background: #FFF;
    float: left;
}

.left:after {
    content: '';
    line-height: 0;
    font-size: 0;
    width: 0;
    height: 0;
    border-top: 100px solid #FFF;
    border-right: 100px solid #090;
    position: absolute;
    top: 0;
    right: -60px;
}

.right {
    margin-left: 60px;
    width: 100px;
}

.right:before {
    content: '';
    line-height: 0;
    font-size: 0;
    width: 0;
    height: 0;
    border-top: 50px solid transparent;
    border-bottom: 60px solid #FFF;
    border-left: 60px solid transparent;
    border-right: 0px solid #FFF;
    position: absolute;
    top: -10px;
    left: -50px;
}