A worked example, rendered from real sample data. Sign in to run the tool on your own input.
bg=#6366f1 color=#fff radius=10px px=20px py=12px.btn {
background: #6366f1;
color: #fff;
padding: 12px 20px;
border: 0;
border-radius: 10px;
font-weight: 600;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: transform 150ms ease, box-shadow 150ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); }
.btn:active { transform: translateY(0); }
Generate modern button CSS — lift hover, shadow, colors, radius, padding. Part of the DevTools Surf developer suite. Browse more tools in the CSS collection.