JSFiddle - React, Tailwind, and code Playground
by Felis Catus
HTML
<div class="backdrop">
<strong>1.1%</strong>
<label>Used</label>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-2.5 -2.5 105 105" width="181px" height="181px">
<circle class="app_a" cx="50" cy="50" r="43.5" stroke-dashoffset="203"/>
<circle class="app_b" cx="50" cy="50" r="43.5" stroke-dashoffset="223"/>
</svg>
SCSS
.backdrop {
position: absolute;
top: 31px;
left: 31px;
width: 119px;
height: 119px;
box-sizing: border-box;
border-radius: 50%;
border-width: 0;
border-style: solid;
border-color: transparent;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-shadow: 0 0 10px 0 #aaa, 0 0 0 31px rgb(243, 243, 243);
font-family: sans-serif;
strong {
font-size: 22px;
line-height: 34px;
}
label {
font-weight: 200;
font-size: 14px;
}
}
svg {
display: block;
transform: rotate(-90deg);
position: absolute;
top: 0;
left: 0;
circle {
fill: none;
stroke-width: 16;
stroke-dasharray: 273;
&.app_a {
stroke: blue;
}
&.app_b {
stroke: red;
}
}
}