Button Generator
Pick from 12 button templates (solid, outline, gradient, glass, soft UI, 3D press, neon, brutalist, shine and more), customise every detail and copy CSS, HTML, React or Tailwind.
Runs in your browserExports CSS, React, Tailwind
About this tool
- 1Pick a template.
- 2Edit the label, icon, colours, border, radius and padding.
- 3Set typography, shadow, hover effect and transition speed.
- 4Check every state, then copy CSS, HTML, React or Tailwind.
How it works
Each template is a set of design tokens compiled into one CSS class with hover, active, focus-visible and disabled states. Effects use transform, box-shadow and filter so they animate on the compositor, and a prefers-reduced-motion block turns transitions off. Text contrast is checked against the button fill.
Use cases
- Primary and secondary actions for a design system
- Landing page calls to action
- Prototyping button styles quickly
Questions
Are focus styles included?
Yes. Every export has a visible :focus-visible outline, plus active and disabled states.
Can I use it with Tailwind?
The Tailwind tab covers the core styles. For glass, glow, 3D and shine effects, add the CSS class.
Is the React component styled?
It renders a button with the .btn class. Paste the CSS into your stylesheet or CSS module.
Related tools
- Glassmorphism GeneratorUI Effects
- Neumorphism GeneratorUI Effects
- Shadow GeneratorUI Effects
- Border Radius GeneratorUI Effects
- CSS Animation GeneratorUI Effects
- All tools in UI Effects
How the algorithms workHow your files are handledUsing what you export