JSFiddle - React, Tailwind, and code Playground
by Jeff
HTML
<div class="orb"></div>
<div class="orb red"></div>
<div class="orb green"></div>
<div class="orb blue"></div>
CSS
* {
box-sizing: border-box;
}
.orb {
border: 2px solid #000;
border-radius: 200px;
display: inline-block;
width: 24px;
height: 24px;
background: linear-gradient(#CCCCCC, #999999);
text-align: center;
}
.orb:after {
display:inline-block;
width: 14px;
height: 10px;
background: #FFF;
content: "";
border-radius: 200px;
margin-bottom: 2px;
background: linear-gradient(#FFF, rgba(0,0,0,0));
}
.orb.red {
background: linear-gradient(#CC2929, #993D3D);
}
.orb.green {
background: linear-gradient(#5FCC29, #5C993D);
}
.orb.blue {
background: linear-gradient(#297BCC, #3D6B99);
}