JSFiddle - React, Tailwind, and code Playground
by ckissi
HTML
<div class="plastic-button-container">
<button class="plastic-button">Start Learning</button>
</div>
CSS
.plastic-button {
width: 280px; /* Approximate width based on image */
height: 56px;
background: linear-gradient(to bottom, #605DFF 0%, #A168FF 100%);
color: white;
font-family: 'Inter', sans-serif;
font-weight: bold;
font-size: 16px;
text-align: center;
line-height: 56px;
border: none;
border-radius: 28px;
cursor: pointer;
position: relative;
overflow: hidden;
}
.plastic-button::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
border-radius: 28px;
}
.plastic-button::after {
content: "";
position: absolute;
top: 4px;
left: 0;
right: 0;
bottom: -4px;
background: rgba(0,0,0,0.2);
filter: blur(4px);
border-radius: 28px;
z-index: -1;
}
.plastic-button-container {
position: relative;
display: inline-block;
padding: 4px;
background: rgba(255,255,255,0.1);
border-radius: 32px;
box-shadow: 0 0 5px rgba(0,0,0,0.3);
}