JSFiddle - React, Tailwind, and code Playground

by ncapito

HTML

<div class="radio-off">
    <div class="radio-on"></div>
</div>

CSS

.radio-off {
    position: relative;
    height: 35px;
    width: 35px;
    border-radius: 40px;
    background-image: -o-linear-gradient(-89deg, #EEEEEE 0%, #DDDDDD 100%);
    background-image: -moz-linear-gradient(-89deg, #EEEEEE 0%, #DDDDDD 100%);
    background-image: -ms-linear-gradient(-89deg, #EEEEEE 0%, #DDDDDD 100%);
    background-image: linear-gradient(-179deg, #EEEEEE 0%, #DDDDDD 100%);
    -moz-box-shadow: 0px 1px 0px 0px rgba(255, 255, 255, 0.50), inset 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 1px 0px 0px rgba(255, 255, 255, 0.50), inset 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
}
.radio-on {
    /*height: 50%;
    width: 50%;
    margin:  auto;*/
    position: absolute;
    height: 17.5px;
    width: 17.5px;
    top: 9.25px;
    left: 9.25px;
    border-radius: 50px;
    background-image: -o-linear-gradient(-89deg, #A9BF0A 0%, #91A022 100%);
    background-image: -moz-linear-gradient(-89deg, #A9BF0A 0%, #91A022 100%);
    background-image: -ms-linear-gradient(-89deg, #A9BF0A 0%, #91A022 100%);
    background-image: linear-gradient(-179deg, #A9BF0A 0%, #91A022 100%);
}