JSFiddle - React, Tailwind, and code Playground

HTML

<div>10</div>

CSS

div {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 50px;
  border-radius: 10px;
  line-height: 50px;
  text-align: center;
  font-size: 18px;
  color: #fff;
  background-color: red;
  transform: rotate(-45deg);
}

 div::after {
   content: '';
   position: absolute;
   border-radius: 10px;
   border: 1px solid red;
   box-sizing: border-box;
   top: -10px;
   left: -10px;
   width: 70px;
   height: 70px;
 }
 
 div::before {
   content: '';
   position: absolute;
   border-radius: 10px;
   border: 1px solid red;
   box-sizing: border-box;
   top: -5px;
   left: -5px;
   width: 60px;
   height: 60px;
 }