JSFiddle - React, Tailwind, and code Playground
HTML
<div class="outer-circle round">
<div class="pink corner"></div>
<div class="green corner"></div>
<div class="blue corner"></div>
<div class="yellow corner"></div>
<div class="stripe horizontal"></div>
<div class="stripe vertical"></div>
<div class="inner-circle round"></div>
</div>
CSS
html {
font-size: 2rem; /* lazy scale by increasing this */
}
.outer-circle {
height: 10rem;
width: 10rem;
background-color: #222;
padding: 0.5rem;
}
.inner-circle {
height: 5rem;
width: 5rem;
position: relative;
top: -7.75rem;
left: 2.25rem;
display: inline-block;
background-color: white;
border: 0.25rem solid #222;
}
.stripe {
width: 10.2rem;
min-height: 0.4rem;
position: relative;
background-color: #222;
/* opacity: 0.7; */
}
.horizontal {
margin-top: 4.8rem; /* .outer-circle radius - height of 0.4rem */
}
.vertical {
transform: rotate(90deg); /* prefix */
margin-top: -0.4rem;
left: -0.09rem; /* hacky centering tweak */
}
.round {
border-radius: 100%;
}
.corner {
height: 5rem;
width: 5rem;
float: left;
}
.pink {
background-color:lightpink;
border-top-left-radius: 100%;
}
.green {
background-color:lightgreen;
border-top-right-radius: 100%;
}
.blue {
background-color: lightblue;
border-bottom-left-radius: 100%;
}
.yellow {
background-color: yellow;
border-bottom-right-radius: 100%;
}