eye-catching buttons
by tomik23
HTML
<a href="#" class="btn bg-brown">Create Account</a>
<a href="#" class="btn bg-red">Create Account</a>
<a href="#" class="btn bg-violet">Create Account</a>
<a href="#" class="btn bg-red-trans">Create Account</a>
<a href="#" class="btn bg-gray-trans">Create Account</a>
CSS
@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900&display=swap');
* {
padding: 0;
margin: 0;
}
html {
height: 100%;
}
html,
body {
padding: 0;
margin: 0;
}
body {
display: grid;
justify-content: center;
align-items: center;
font-family: 'Lato', sans-serif;
min-height: 100%;
}
a {
text-decoration: none;
font-weight: 900;
font-size: 18px;
}
.btn {
display: inline-block;
padding: 20px;
transition: .25s;
text-align: center;
width: 250px;
color: #fff;
background-color: #000;
box-shadow: 8px 8px 0 rgba(128, 83, 35, .2);
}
.btn:hover {
box-shadow: none;
}
.bg-brown {
background-color: #BC834B;
box-shadow: 8px 8px 0 rgba(188, 131, 75, .2)
}
.bg-red {
background-color: #FB3B49;
box-shadow: 8px 8px 0 rgba(251, 59, 73, .2);
}
.bg-violet {
background-color: #662D91;
box-shadow: 8px 8px 0 rgba(102, 45, 145, .2);
}
.bg-red-trans {
color: #F2555B;
background-color: rgba(242, 85, 91, .2);
box-shadow: inset 4px 4px 0 #fff, 7px 7px 0 rgba(242, 85, 91, .2);
border: 3px solid #F2555B;
}
.bg-gray-trans {
color: grey;
background-color: rgba(128, 128, 128, .2);
box-shadow: inset 4px 4px 0 #fff, 7px 7px 0 rgba(128, 128, 128, .2);
border: 3px solid grey;
}