JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title></title>
</head>
<body>
    <div class="container">
      <span class="black"><b>10/10</b></span>
      <div class="strip">
        <span class="white"><b>10/10</b></span>
    </div>
  </div>
</body>
</html>

CSS

.container {
      width: 300px;
      height: 30px;
      border: 1px solid gray;
    }

    .strip {
      width: 151px;
      background-color: mediumseagreen;
      height: inherit;
      position: absolute;
      overflow: hidden;
      text-overflow: clip;
    }

    .black, .white {
      position: absolute;
      margin-top: 5px;
      margin-left: 133px;
    }

    .white {
      color: white;
    }