Button Generator
Design accessible buttons with live hover preview and production-ready CSS.
Presets
Click any preset to apply it
Live Preview
Light background
Hover to preview state
Button Settings
Generated CSS
.button {
background-color: #3b82f6;
color: #ffffff;
border: none;
border-radius: 8px;
padding: 12px 24px;
font-size: 16px;
font-weight: 600;
box-shadow: 0 4px 14px rgba(59,130,246,0.4);
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 200ms ease;
/* Accessibility */
text-decoration: none;
white-space: nowrap;
}
.button:hover,
.button:focus-visible {
background-color: #2563eb;
box-shadow: 0 6px 20px rgba(59,130,246,0.5);
transform: scale(1.02);
}
.button:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
.button:active {
transform: scale(0.98);
}
.button:disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
.button {
transition: none;
}
}