JSFiddle - React, Tailwind, and code Playground
HTML
<div class="tabs">
<ul>
<li><a href="">Qualification</a></li>
<li><a href="">Profile</a></li>
<li><a href="">Skills Assessment</a></li>
<li><a href="">Interview Prep</a></li>
<li><a href="">Debrief</a></li>
<li><a href="">Offer</a></li>
<li><a href="">Follow Up</a></li>
</ul>
</div>
CSS
.tabs {
padding-top: 0.5em;
padding-bottom: 1em;
padding-right: 40px;
}
.tabs > ul {
display: flex;
justify-content: space-between;
}
.tabs > ul > li {
position: relative;
display: inline-block;
background: #eeeeee;
padding: 1em 1em 1em 2em;
line-height: 1.25em;
color: #ffffff;
}
.tabs > ul > li > a {
color: #ffffff;
font-family: Lato-Regular;
font-size: 1.2em;
}
.tabs > ul > li:after {
position: absolute;
content: " ";
height: 0;
width: 0;
top: 0;
left: 100%;
border: 1.65em solid transparent;
z-index: 1;
}
.tabs > ul > li:before {
position: absolute;
content: "";
height: 0;
width: 0;
top: -3px;
left: 101%;
border-width: 1.85em 1.65em 1.85em 1.85em;
border-style: solid;
border-color: transparent transparent transparent #fff;
z-index: 1;
}
.tabs > ul > li:nth-child(1):after {
border-left-color: red; }
.tabs > ul > li:nth-child(1) {
background: red; }
.tabs > ul > li:nth-child(2):after {
border-left-color: orange; }
.tabs > ul > li:nth-child(2) {
background: orange; }
.tabs > ul > li:nth-child(3):after {
border-left-color: gray; }
.tabs > ul > li:nth-child(3) {
background: gray; }
.tabs > ul > li:nth-child(4):after {
border-left-color: deepskyblue; }
.tabs > ul > li:nth-child(4) {
background: deepskyblue; }
.tabs > ul > li:nth-child(5):after {
border-left-color: blue; }
.tabs > ul > li:nth-child(5) {
background: blue; }
.tabs > ul > li:nth-child(6):after {
border-left-color: purple; }
.tabs > ul > li:nth-child(6) {
background: purple; }
.tabs > ul > li:nth-child(7):after {
border-left-color: green; }
.tabs > ul > li:nth-child(7) {
background: green; }