Buttons
The buttons on tailwindcss.com
The primary button on tailwindcss.com is #000000 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 tailwindcss.com 4 days ago.
primary button
- Hover
- no visible change
- Focus
- outline 1px auto rgb(16, 16, 16), offset 1px
- Transition
- all, 0s
ghost button
- Hover
- no visible change
The CSS
One class per variant, with the measured values. The font is the one tailwindcss.com sets on its buttons.
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40px;
padding: 8px 16px;
background: #000000;
color: #ffffff;
border: none;
border-radius: 32px;
font-size: 14px;
font-weight: 600;
font-family: "inter", sans-serif;
cursor: pointer;
}
.btn-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
height: 24px;
padding: 2px 6px;
background: transparent;
color: #000000;
border: none;
border-radius: 16px;
font-size: 12px;
font-weight: 500;
font-family: "inter", 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/tailwindcss.com/DESIGN.mdQuestions
How do I make buttons like tailwindcss.com?
Use the CSS on this page: the primary button is #000000 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 tailwindcss.com uses.
What color are the tailwindcss.com buttons?
The primary button on tailwindcss.com is #000000 with #ffffff text. The site uses 2 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 tailwindcss.com buttons?
Yes. The tailwindcss.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.