CSS Button Generator
Design a button and its hover state.
Hover darkens the button with filter: brightness(.92), so you do not have to compute a second color. The label in the preview is the text you typed.
Frequently asked questions
Should I use a class or style the button element?
The copy uses .btn. Put it on <button> or <a> and you will not restyle every button on the page.
Does the shadow follow the radius?
Yes. Box-shadow uses the border box, including border-radius.