Buttons

The buttons on mercury.com

The primary button on mercury.com is #5266eb with #ffffff text, 32px corners and 40px tall. Below: every button variant the site uses, its hover and focus states, and the CSS to make yours look the same.

Measured from mercury.com 4 days ago.

primary button

Open account
Hover
no visible change
Focus
outline 2px solid rgb(156, 180, 232), offset 4px
Transition
color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, 0.3s

secondary button

Launch demo
Hover
no visible change
Transition
color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, 0.3s

ghost button

Products
Hover
no visible change

The CSS

One class per variant, with the measured values. The font is the one mercury.com sets on its buttons.

buttons.css
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0px 20px;
  background: #5266eb;
  color: #ffffff;
  border: none;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 420;
  font-family: "arcadia", sans-serif;
  cursor: pointer;
}
​
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0px 20px;
  background: #afb2ce33;
  color: #ededf3;
  border: 1px solid #afb2ce5c;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 420;
  font-family: "arcadia", sans-serif;
  cursor: pointer;
}
​
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0px 20px;
  background: transparent;
  color: #ededf3;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 420;
  font-family: "arcadia", sans-serif;
  cursor: pointer;
}

For AI agents

The pack is plain text, no key: fetch DESIGN.md, or hand the whole pack to Claude Code, Cursor or Copilot with the MCP server.

curl -s https://stylepack.ai/packs/mercury.com/DESIGN.md

Questions

How do I make buttons like mercury.com?

Use the CSS on this page: the primary button is #5266eb with #ffffff text, 32px corners, 40px tall. Add the hover and focus rules listed under each variant and set the button font to the one mercury.com uses.

What color are the mercury.com buttons?

The primary button on mercury.com is #5266eb with #ffffff text. The site uses 3 button variants in total; each one is listed on this page with its background, border, radius and size.

Can an AI coding agent copy the mercury.com buttons?

Yes. The mercury.com design pack from Stylepack holds every button variant with its states, the fonts, the colors and screenshots, so Claude Code, Cursor or Copilot can build buttons that match.