JSFiddle - React, Tailwind, and code Playground

by AJIEKCEU

HTML

<div class="div">
  <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reprehenderit, impedit, laudantium. Molestiae debitis iusto reiciendis nemo omnis possimus officia dolore molestias id earum. Architecto libero eligendi sapiente, quis magni autem.</div>
</div>

CSS

body {
  background-color: hsla(211, 84%, 5%, 1);
}
.div {
  width: 200px;
  height: 120px;
  overflow-y: auto;
  padding-right: 15px;
  background-color: hsla(211, 84%, 5%, 1);
  color: #fff;
  }
  .div::-webkit-scrollbar {
        width: em(15, $fz);

        border: 1px solid;
        border-image: linear-gradient(180deg, hsla(262, 72%, 29%, 0.5) 0%, hsla(214, 66%, 26%, 0.5) 100%) 1;
        background-color: hsl(211, 84%, 5%);
        box-shadow: inset 0 0 0 1px hsl(0, 0%, 0%);
      }

      .div::-webkit-scrollbar-thumb {
        border: 2px  #61747F outset;
        background-color: #50616B;
        background-image: -webkit-linear-gradient(90deg, #D1E4EF, #798C97 50%, transparent 50%, transparent 100%);
        background-size: auto 4px;
        box-shadow: inset 0 0 0 2px #50616B;
      }