JSFiddle - React, Tailwind, and code Playground

by envira

HTML

<div class="buttonwrap">
    <div class="button">
    </div>
</div>

CSS

.button {
 transition: box-shadow 300ms cubic-bezier(0.23, 1, 0.32, 1);
box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2), inset 0 1px 1px 1px rgba(255, 255, 255, 0.5), 0 3px 3px rgba(0, 0, 0, 0.5);
background: linear-gradient(#E7E7E7 0%, #D8D8D8 48%, #CCC 52%, #B4B4B4 100%);
position: relative;
border-radius: 40px;
height: 40px;
width: 40px;
}

.buttonwrap {
    border-radius: 40px;
box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.7);
background: linear-gradient(#C3C3C3, #E5E5E5);
position: relative;
padding: 6px;
height: 40px;
width: 40px;
}