Tools
Get the button CSS of any website
Enter a website address and get the CSS of its buttons: every variant with its background, text color, border, radius and size, plus hover and focus.
stripe.com
Measured 4 days ago.
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40px;
padding: 11.5px 20px;
background: #533afd;
color: #ffffff;
border: none;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
font-family: "sohne-var", sans-serif;
cursor: pointer;
}
.btn-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40px;
padding: 10.5px 20px;
background: transparent;
color: #533afd;
border: 1px solid #ffffff;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
font-family: "sohne-var", sans-serif;
cursor: pointer;
}
.btn-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40px;
padding: 12px 0px;
background: transparent;
color: #061b31;
border: none;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
font-family: "sohne-var", sans-serif;
cursor: pointer;
}How it works
Stylepack opens the site in a real browser, measures what renders (not what the stylesheet says) at four widths and in both themes, and stores the result as a design pack. A site already measured answers at once; a new one takes under a minute. Every value on this page comes from that pack.
Questions
Which buttons are measured?
The primary, secondary and ghost variants found on the page, each measured at rest, on hover and on focus. The CSS has one class per variant with the measured values.
Why does my button still look different?
Buttons depend on their font: set the button font to the one the site uses (named in the result) and load it, or its free stand-in, first. The design pack carries the font stack and the rest of the system.
Can an AI coding agent use this?
Yes. Paste the CSS, or hand the agent the site's design pack: it holds every variant with its states, the colors, the type and screenshots to compare against.