HTML
<div class="ph3">
<h1 class="f6 fw6 ttu tracked">Basic pill</h1>
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-black" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-near-black" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-dark-gray" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-mid-gray" href="#0">Button Text</a>
</div>
<div data-name="screenshot">
<div class="ph3">
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-purple" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-light-purple" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-hot-pink" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-dark-pink" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-navy" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-dark-blue" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ph3 pv2 mb2 dib white bg-dark-green" href="#0">Button Text</a>
</div>
</div> <!-- end screenshot -->
<div class="ph3 mt4">
<h1 class="f6 fw6 ttu tracked">Pill with Thin Border</h1>
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib black" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib near-black" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib dark-gray" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib mid-gray" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib purple" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib light-purple" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib hot-pink" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib dark-pink" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib navy" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib dark-blue" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba ph3 pv2 mb2 dib dark-green" href="#0">Button Text</a>
</div>
<div class="ph3 mt4">
<h1 class="f6 fw6 ttu tracked">Pill with Border</h1>
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib black" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib near-black" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib dark-gray" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib mid-gray" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib purple" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib light-purple" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib hot-pink" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib dark-pink" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib navy" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib dark-blue" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw1 ph3 pv2 mb2 dib dark-green" href="#0">Button Text</a>
</div>
<div class="ph3 mt4">
<h1 class="f6 fw6 ttu tracked">Pill with Thick Border</h1>
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib black" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib near-black" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib dark-gray" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib mid-gray" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib purple" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib light-purple" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib hot-pink" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib dark-pink" href="#0">Button Text</a>
</div>
<div class="ph3 mb4">
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib navy" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib dark-blue" href="#0">Button Text</a>
<a class="f6 grow no-underline br-pill ba bw2 ph3 pv2 mb2 dib dark-green" href="#0">Button Text</a>
</div>
css
.ba {
border-style: solid;
border-width: 1px;
}
.br-pill {
border-radius: 9999px;
}
.bw1 {
border-width: .125rem;
}
.bw2 {
border-width: .25rem;
}
.dib {
display: inline-block;
}
.fw6 {
font-weight: 600;
}
.tracked {
letter-spacing: .1em;
}
.black {
color: #000;
}
.near-black {
color: #111;
}
.dark-gray {
color: #333;
}
.mid-gray {
color: #555;
}
.white {
color: #fff;
}
.purple {
color: #5e2ca5;
}
.light-purple {
color: #a463f2;
}
.dark-pink {
color: #d5008f;
}
.hot-pink {
color: #ff41b4;
}
.dark-green {
color: #137752;
}
.navy {
color: #001b44;
}
.dark-blue {
color: #00449e;
}
.bg-black {
background-color: #000;
}
.bg-near-black {
background-color: #111;
}
.bg-dark-gray {
background-color: #333;
}
.bg-mid-gray {
background-color: #555;
}
.bg-purple {
background-color: #5e2ca5;
}
.bg-light-purple {
background-color: #a463f2;
}
.bg-dark-pink {
background-color: #d5008f;
}
.bg-hot-pink {
background-color: #ff41b4;
}
.bg-dark-green {
background-color: #137752;
}
.bg-navy {
background-color: #001b44;
}
.bg-dark-blue {
background-color: #00449e;
}
.pv2 {
padding-top: .5rem;
padding-bottom: .5rem;
}
.ph3 {
padding-left: 1rem;
padding-right: 1rem;
}
.mb2 {
margin-bottom: .5rem;
}
.mb4 {
margin-bottom: 2rem;
}
.mt4 {
margin-top: 2rem;
}
.no-underline {
text-decoration: none;
}
.ttu {
text-transform: uppercase;
}
.f6 {
font-size: .875rem;
}
.grow {
-moz-osx-font-smoothing: grayscale;
backface-visibility: hidden;
transform: translateZ(0);
transition: transform .25s ease-out;
}
.grow:hover, .grow:focus {
transform: scale(1.05);
}
.grow:active {
transform: scale(.9);
}