JSFiddle - React, Tailwind, and code Playground
by Mahbubur Rahman
HTML
<a href="#" class="button">Button</a>
CSS
.button {
text-decoration: none;
padding: 10px 25px;
font-size: 20px;
color: #333;
display: inline-block;
background: #d6e9eb;
border-radius: 3px;
margin-right: 10px;
margin-bottom: 10px;
position: relative;
z-index: 1;
transition: color 0.3s ease-out; }
.button:before {
background: #91a5f4;
background: -moz-linear-gradient(-45deg, #91a5f4 0%, #b08cf9 86%);
background: -webkit-linear-gradient(-45deg, #91a5f4 0%, #b08cf9 86%);
background: linear-gradient(135deg, #91a5f4 0%, #b08cf9 86%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#91a5f4', endColorstr='#b08cf9',GradientType=1 );
color: #FFFFFF;
content: "";
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease-out;
border-radius: 3px; }
.button:hover:before {
opacity: 1; }
.button:hover {
color: #fff; }