Diese Seite ist noch nicht auf Deutsch verfügbar, daher zeigen wir die englische Version.

CSS Button Generator — Styled Buttons with Hover and Focus States

Design a button that looks great in every state. Start from a preset — solid, outline, ghost, pill, gradient, 3D, glass or neo-brutalist — then tune the colors, padding, corner radius, border and shadow, and the hover, active and focus effects. Try it live in the preview and copy clean, accessible CSS and HTML.

Aktualisiert am

Hover, click and Tab to the button to see each state.

Deine Daten verlassen nie deinen Computer. Die Verarbeitung erfolgt zu 100 % lokal im Browser.

So nutzt du: CSS Button Generator

  1. Start from a preset: solid, outline, ghost, pill, gradient, 3D, glass or neo-brutalist.
  2. Change the colors (or a gradient), font size, padding, corner radius, border and shadow.
  3. Pick a hover effect and try every state in the preview — hover, press, and Tab for the focus ring.
  4. Copy the CSS and the HTML; rename the .btn class if you like.

Every state, accessible by default

  • Hover gives a clear visual response with a short transition.
  • Active (pressed) moves the button down slightly, so clicks feel physical.
  • Focus-visible shows a strong outline only for keyboard users, so the button stays clean for mouse users but is never invisible to people who navigate with Tab.
  • prefers-reduced-motion turns the movement off for visitors who ask for less animation.

Check the text against the button color with the Contrast Checker — WCAG asks for at least 4.5:1 for normal text. Use a real <button> for actions and an <a> for navigation; the CSS works on both. Related: Box Shadow Generator, CSS Gradient Generator, CSS Hover Animation Generator.

Auch gesucht als: button generator, css button styles, button hover effect css, gradient button css, css button maker, button css code, webflow button style.

Passende Tools zu: CSS Button Generator

  • Border Radius Generator — Round the corners of any box: drag one slider for all corners or set each corner separately, switch to elliptical corners for blob and leaf shapes, and copy the shortest valid border-radius CSS.
  • Glassmorphism Generator — Design a frosted-glass card with live sliders and copy cross-browser CSS — with the -webkit-backdrop-filter prefix and a fallback for older browsers.
  • CSS Animation Generator — Design CSS animations on a real keyframe timeline.
  • CSS Keyframes Generator — A visual editor for @keyframes.

Häufige Fragen

How do I make a button hover effect in CSS?
Add a :hover rule that changes the background, shadow or position, and a transition on the button so the change animates. Pick a hover effect here to get the code.
Should I remove the focus outline on buttons?
No — keyboard users need it. Use :focus-visible, as this generator does, so the ring appears for keyboard navigation but not after mouse clicks.
How do I make a gradient button?
Tick Gradient background and choose two colors; the CSS uses linear-gradient as the background-image.
Does it work in Webflow?
Yes — paste the CSS into an Embed with a style tag (or your site’s custom code) and give your Webflow button the class btn, or copy the values into the Style panel.
Kann ich CSS Button Generator als Web-App installieren und offline nutzen?
Ja. CSS Button Generator ist eine installierbare Web-App (PWA) – sie wird über Ihren Browser installiert und nicht aus einem App-Store heruntergeladen. Klicken Sie oben auf dieser Seite in Chrome oder Edge (Windows, macOS, Linux, ChromeOS) auf „App installieren“ oder verwenden Sie auf Android-Geräten „Teilen“ → „Zum Startbildschirm hinzufügen“ auf dem iPhone und iPad bzw. „Datei“ → „Zum Dock hinzufügen“ in Safari 17+ auf einem Mac. Die App öffnet sich dann in einem eigenen Fenster mit einem eigenen Symbol, und da sie vollständig in Ihrem Browser ausgeführt wird, funktioniert sie auch offline. Firefox auf dem Desktop kann keine Web-Apps installieren. So funktioniert die Installation.

Ähnliche Tools