Buttons
The buttons on github.com
The primary button on github.com is #08872b with #ffffff text, 6px corners and 48px tall. Below: every button variant the site uses, its hover and focus states, and the CSS to make yours look the same.
Measured from github.com 4 days ago.
primary button
- Hover
- background transparent → #ffffff29, border #262c28 → #ffffff1f
- Focus
- outline 2px solid rgb(48, 148, 255)
- Transition
- background-color, border-color, 0.2s, 0.2s
secondary button
- Hover
- background transparent → #ffffff29, border #262c28 → #ffffff1f
- Transition
- background-color, border-color, 0.2s, 0.2s
ghost button
- Hover
- no visible change
The CSS
One class per variant, with the measured values. The font is the one github.com sets on its buttons.
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
height: 48px;
padding: 6px 20px;
background: #08872b;
color: #ffffff;
border: 1px solid transparent;
border-radius: 6px;
font-size: 14px;
font-weight: 400;
font-family: "Mona Sans", sans-serif;
cursor: pointer;
}
.btn-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
height: 32px;
padding: 1px 12px;
background: transparent;
color: #ffffff;
border: 1px solid #262c28;
border-radius: 6px;
font-size: 16px;
font-weight: 400;
font-family: "Mona Sans", sans-serif;
cursor: pointer;
}
.btn-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
height: 42px;
padding: 5px 5px;
background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
color: #000000;
border: none;
border-radius: 0px;
font-size: 14px;
font-weight: 600;
font-family: "Mona 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/github.com/DESIGN.mdQuestions
How do I make buttons like github.com?
Use the CSS on this page: the primary button is #08872b with #ffffff text, 6px corners, 48px tall. Add the hover and focus rules listed under each variant and set the button font to the one github.com uses.
What color are the github.com buttons?
The primary button on github.com is #08872b 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 github.com buttons?
Yes. The github.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.