Buttons

The buttons on canva.com

The primary button on canva.com is #8b3dff with #ffffff text, 12px 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 canva.com 4 days ago.

primary button

Start designing for free
Hover
background #ffffffe5 → #ffffff
Focus
outline 1px auto rgb(238, 238, 238), offset 1px
Transition
background-color, box-shadow, color, transform, 0.1s, 0.1s, 0.1s, 0.07s

secondary button

Log in
Hover
background #ffffffe5 → #ffffff
Transition
background-color, box-shadow, color, transform, 0.1s, 0.1s, 0.1s, 0.07s

ghost button

Design
Hover
no visible change

The CSS

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

buttons.css
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0px 16px;
  background: #8b3dff;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Canva Sans", sans-serif;
  box-shadow: rgba(255, 255, 255, 0.16) 0px 24px 24px -18px inset, rgba(255, 255, 255, 0.25) 0px 1px 0.5px 0px inset, rgba(21, 30, 130, 0.12) 0px -1px 0.5px 0px inset, rgba(21, 30, 130, 0.07) 0px 1px 2px 0px, rgba(21, 30, 130, 0.03) 0px 3px 4px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px inset;
  cursor: pointer;
}
​
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0px 12px;
  background: #ffffffe5;
  color: #0f1015;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Canva Sans", sans-serif;
  box-shadow: rgba(255, 255, 255, 0.08) 0px 24px 24px -18px inset, rgba(255, 255, 255, 0.25) 0px 1px 0.5px 0px inset, rgba(0, 0, 0, 0.25) 0px -1px 0.5px 0px inset, rgba(0, 0, 0, 0.14) 0px 1px 2px 0px, rgba(0, 0, 0, 0.07) 0px 3px 4px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px inset;
  cursor: pointer;
}
​
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 4px 8px;
  background: transparent;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 13.3333px;
  font-weight: 400;
  font-family: "Canva Sans", 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/canva.com/DESIGN.md

Questions

How do I make buttons like canva.com?

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

What color are the canva.com buttons?

The primary button on canva.com is #8b3dff 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 canva.com buttons?

Yes. The canva.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.