JSFiddle - React, Tailwind, and code Playground
HTML
<div class="button">text</div>
CSS
.button {
background: -webkit-linear-gradient(top, #fefcea, #f1da36);
display: inline-block;
padding: 0 10px;
margin: 5px 40px;
height: 125px;
line-height: 25px;
position: relative;
border: 1px solid black;
border-width: 1px 0;
box-sizing: border-box;
}
.button::before,
.button::after {
box-sizing: border-box;
border: 1px solid black;
display: block;
position: absolute;
content: "";
background: -webkit-linear-gradient(top, #fefcea, #f1da36);
height: 125px;
width: 30px;
top: -1px;
z-index: -1;
}
.button::before {
left: -15px;
border-radius: 0 5px;
-webkit-transform: skew(30deg,0deg);
}
.button::after {
right: -15px;
border-radius: 5px 0;
-webkit-transform: skew(-30deg,0deg);
}