JSFiddle - React, Tailwind, and code Playground

by Arnold Daniels

HTML

<ol class="steps">
  <li class="complete">
    abddrfasfasdfasdfasd fasdf asdfa
  </li>
  <li class="progress">
    bar
  </li>
  <li>
    safasdfasdfasdfasdfasfasd
  </li>
</ol>

CSS

.steps {
  list-style-type: none;
  padding: 0;
  z-index: 10;
  
  --color: #451165;
  --incomplete-color: #bb8dd7;
}

.steps li {
  display: inline-block;
  width: 33%;
  text-align: center;
  position: relative;
  float: left;
  color: var(--color);
  font-size: 15px;
}

.steps li::before {
  display: block;
  border-radius: 50%;
  content: "\00A0";
  line-height: 20px;
  width: 20px;
  text-align: center;
  margin: 0 auto 10px auto;
  background-color: var(--incomplete-color);
  position: relative;
  z-index: 10;
  color: #fff;
}
.steps li.progress::before {
  content: "\2026";
  font-size: 10px;
  background-color: var(--color);
}
.steps li.complete::before {
  content: "\2713";
  font-size: 15px;
  background-color: var(--color);
}

.steps li::after {
  content: "";
  position: absolute;
  border-top: 2px solid var(--incomplete-color);
  width: 100%;
  top: 10px;
  left: 50%;
  z-index: 9;
}
.steps li:last-child::after {
  content: none;
}
.steps li.complete::after {
  border-color: var(--color);
}