Skip to content
TabKiwiTabKiwi

CSS Button Generator

Style solid, outline, soft, gradient or neo-brutal buttons with hover and focus states.

DesignRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Pick a variant and a color, set padding, radius and font, and get a complete button class with hover, active and keyboard focus styles. Text color is chosen automatically for readable contrast against the fill. Both the CSS and a matching HTML snippet are ready to copy.

How to use CSS Button Generator

  1. Choose a variant.
  2. Set the label and color.
  3. Adjust padding, radius and font size.
  4. Copy the CSS and HTML.

Frequently asked questions

Why is there a focus-visible style?

Keyboard users need to see which button is focused. focus-visible shows the outline for keyboard navigation without showing it on every mouse click.

Can I use these with Tailwind or a framework?

Yes. The output is plain CSS, so you can paste it into a global stylesheet or a CSS module, or translate the values into utility classes.

More Design tools

View all 33 →