🔘
CSS Button Generator
Design production-ready, accessible buttons with hover states.
Padding X (Horizontal)24px
Padding Y (Vertical)14px
Corner RadiusFull Pill
Border Width0px
Generated Code Output
/* CSS */
.custom-btn {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 15px;
font-weight: 700;
padding: 14px 24px;
border-radius: 999px;
background-color: #0a1612;
color: #ffffff;
border: none;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
text-decoration: none;
}
.custom-btn:hover {
background-color: #1a3a2a;
transform: scale(1.03);
}
.custom-btn:active {
transform: scale(0.97);
}✨ Tool Features
- Normal, Hover, and Active interactive state tester
- Icon position (left/right/none)
- Subtle shine & border glow animations
- Export plain CSS or Tailwind JSX
💡 How to Use
- 1Customize label, padding, colors, and border radius.
- 2Switch to the 'Hover' and 'Active' preview tabs to test interactions.
- 3Hover directly over the test button to observe spring transitions.
- 4Copy the complete CSS rule block or Tailwind utility classes.