JSFiddle - React, Tailwind, and code Playground

by csswizardry

HTML

<div class=ring></div>

CSS

.ring{
    display:block;
    width:200px;
    height:200px;
    background-color:red;
    position:relative;
    
    -webkit-border-radius:100%;
       -moz-border-radius:100%;
            border-radius:100%;
}
.ring:before,
.ring:after{
    content:"";
    position:absolute;    
}
.ring:before{
    background-color:green;
    width:160px;
    height:160px;
    top:20px;
    left:20px;
    
    -webkit-border-radius:100%;
       -moz-border-radius:100%;
            border-radius:100%;
}
.ring:after{
    width:50%;
    height:50%;
    top:0;
    right:0;
    background-color:blue;
}