JSFiddle - React, Tailwind, and code Playground

by Jens Kühn

HTML

<div class="diamond"></div>

SCSS

.diamond {
  width: 50px;
  height: 0;
  position: relative;
  margin: 20px 0 50px;
  border: 25px solid rgba(0,0,0,0);
  border-top-width: 0;
  border-bottom-color: #1abc9c;
  font: normal 100%/normal Arial, Helvetica, sans-serif;
  color: rgba(0,0,0,1);
  -o-text-overflow: clip;
  text-overflow: clip;
}


.diamond::after {
  width: 0;
  height: 0;
  position: absolute;
  content: "";
  top: 25px;
  left: -25px;
  border: 50px solid rgba(0,0,0,0);
  border-top: 70px solid #1abc9c;
  border-bottom-width: 0;
  font: normal 100%/normal Arial, Helvetica, sans-serif;
  color: rgba(0,0,0,1);
  -o-text-overflow: clip;
  text-overflow: clip;
}