JSFiddle - React, Tailwind, and code Playground

HTML

<body>
  <div id="sliderWrapper">
    <input type="range" min="10" max="90" value="50" class="customSlider" />
  </div>
</body>

CSS

body {
  display: flex;
  justify-content: center;
  margin-top: 100px;
}

#sliderWrapper {
  width: 400px;
}

.customSlider {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background-color: #bababa;
}

.customSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  margin-top: 25px;
  border-radius: 50%;
  background: white;
  border-style: solid;
  border-width: 2px;
  border-color: #474850;
  cursor: pointer;
}

.customSlider::-webkit-slider-thumb:after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  background-color: red;
}

.customSlider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #4CAF50;
  cursor: pointer;
}

.customSlider::-webkit-slider-thumb:after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  background-color: red;
}