CSS Button Generator

Design beautiful CSS buttons with custom colors, borders, border-radius, shadows and hover effects — live preview updates as you type.

8px
Generated CSS

        

What Does This Tool Do?

Design CSS buttons by adjusting background, text color, border, border-radius, padding and box shadow. The live preview updates instantly and you can copy the production-ready CSS.

Key Features

🎨
Full Control
Color, border, radius, shadow, padding, size.
👁️
Live Preview
See the actual rendered button update instantly.
📋
Copy CSS
Ready-to-use CSS including hover state.
Hover Effect
Auto-generated brightness and lift hover state.

How to Use

  1. Choose background and text colors using the color pickers.
  2. Adjust border radius, border width and padding.
  3. Select box shadow style.
  4. Copy the CSS including hover effects.

Frequently Asked Questions

How do I add a hover effect?
The generated CSS includes a :hover rule that slightly brightens the button and lifts it with transform: translateY(-1px). You can customise this further.
Can I use this for outline buttons?
Yes — set the background to transparent, add a border color, and make the text color match the border for a classic outline button style.
What is the transition property for?
transition: all 0.2s makes the hover effect animate smoothly over 200 milliseconds instead of jumping instantly.