JSFiddle - React, Tailwind, and code Playground

by Galen Gidman

HTML

<div class="pie">
  <div class="pie-slice">
    <div class="pie-bar" style="transform: rotate(30deg)"></div>
    <div class="pie-fill"></div>
  </div>
</div>

CSS

body {
  background-color: white;
  padding: 50px;
}

.pie {
  font-size: 120px;
}

.pie-slice {
  position: absolute;
  width: 1em;
  height: 1em;
  clip: rect(0, 1em, 1em, .5em);
}

.pie-bar {
  position: absolute;
  width: calc(1em - 10px);
  height: calc(1em - 10px);
  border: 5px solid blue;
  clip: rect(0, .5em, 1em, 0);
  border-radius: 50%;
}