Buttons
The buttons on openai.com
The primary button on openai.com is #000000 with #ffffff text, 40px corners and 36px tall. Below: every button variant the site uses, its hover and focus states, and the CSS to make yours look the same.
Measured from openai.com 4 days ago.
primary button
- Hover
- no visible change
- Focus
- outline 1px none rgba(0, 0, 0, 0.486), offset 2px
- Transition
- color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events, 0.2s
secondary button
- 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, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events, 0.25s
ghost button
- Hover
- no visible change
The CSS
One class per variant, with the measured values. The font is the one openai.com sets on its buttons.
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
height: 36px;
padding: 0px 20px;
background: #000000;
color: #ffffff;
border: none;
border-radius: 40px;
font-size: 14px;
font-weight: 500;
font-family: "OpenAI Sans", sans-serif;
cursor: pointer;
}
.btn-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40px;
padding: 0px 12px;
background: transparent;
color: #000000;
border: 1px solid #0000001f;
border-radius: 9999px;
font-size: 14px;
font-weight: 500;
font-family: "OpenAI Sans", sans-serif;
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.02) 0px 4px 6px 0px, rgba(0, 0, 0, 0.05) 0px 0px 2px 0px;
cursor: pointer;
}
.btn-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
height: 64px;
padding: 0px 16px;
background: transparent;
color: #000000;
border: none;
border-radius: 0px;
font-size: 17px;
font-weight: 400;
font-family: "OpenAI 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/openai.com/DESIGN.mdQuestions
How do I make buttons like openai.com?
Use the CSS on this page: the primary button is #000000 with #ffffff text, 40px corners, 36px tall. Add the hover and focus rules listed under each variant and set the button font to the one openai.com uses.
What color are the openai.com buttons?
The primary button on openai.com is #000000 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 openai.com buttons?
Yes. The openai.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.