Color & Design
CSS Button Generator
Design a button visually — colours, padding, radius, border and shadow — and export tidy CSS including a hover state.
Good to know
Frequently asked questions
Does the CSS include a hover state?
Yes, plus a focus-visible outline so keyboard users can see where they are.
Can I use this with Tailwind?
You can paste it into a component layer, though in Tailwind you would usually translate the values into utility classes.
Why does the contrast reading matter?
A button nobody can read is a button nobody clicks. The live reading keeps you above the WCAG AA threshold.
Is the shadow optional?
Yes — untick the drop shadow and it is removed from both the preview and the exported CSS.