JSFiddle - React, Tailwind, and code Playground

HTML

<div class="top">
  <div class="is-active">1</div>
  <div>2</div>
  <div>3</div>
  <div>4</div>
</div>
<div class="bottom">
  <div>Text 1</div>
  <div>Text 2</div>
  <div>Text 3</div>
</div>

SCSS

.top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 40px;
  
  > div {
    text-align: center;

    &:nth-child(1) {
      background: rgba(red, 0.5);
      
      &.is-active {
        background: rgba(red, 1.0);
      }
    }

    &:nth-child(2) {
      background: rgba(green, 0.5);
      
      &.is-active {
        background: rgba(green, 1.0);
      }
    }

    &:nth-child(3) {
      background: rgba(blue, 0.5);
      
      &.is-active {
        background: rgba(blue, 1.0);
      }
    }

    &:nth-child(4) {
      background: rgba(yellow, 0.5);
      
      &.is-active {
        background: rgba(yellow, 1.0);
      }
    }
  }
}

.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: red;
  height: 40px;
  
  > div {
    text-align: center;
  }
}