JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrapper">
  <div class="block"></div>
</div>

CSS

.wrapper {
  background-color: #f2f2f2;
  padding: 20px;
}

.block {
  width: 200px;
  height: 200px;  
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}
.block:after{
	content: '';
	position: absolute; 
  top: 0; 
  left: 0;
	right:0;
  bottom:0;
	border: 1px dashed #ffe066;
    border-radius: 5px;
}
.block:before {
  content: '';
  border-style: solid;
  border-width: 24px 24px 0 0;
  border-color: #ffe066 transparent transparent transparent;
  display: block;
  height: 0;
  left: 0;
  position: absolute;
  top: 0;
  width: 0;
}