CSS Button Generator
Solid, outline, soft, and neo-brutal CSS buttons with hover and active states.
CSS
.button {
padding: 12px 22px;
border-radius: 10px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
background: #4D6FFF;
color: #ffffff;
border: none;
}
.button:hover {
background: #4462e0;
}
.button:active {
transform: translateY(1px);
}Runs in this browser. Nothing is uploaded.
How to use CSS Button Generator
Enter button label text, choose Solid, Outline, Neo-brutal, or Soft shadow style, and adjust font size and weight.
Fine-tune padding X/Y, border radius, background, and text colors while testing hover directly on the preview button.
Copy the complete .button, .button:hover, and .button:active rules.
Frequently asked questions
Are hover and active states generated automatically?
Yes. Each button preset generates matching hover and press states tailored to its visual style.