HTML
<div class="ph3">
<h1 class="f6 fw6 ttu tracked">Basic button</h1>
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-black" href="#0">Button Text</a>
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-near-black" href="#0">Button Text</a>
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-dark-gray" href="#0">Button Text</a>
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-mid-gray" href="#0">Button Text</a>
</div>
<div data-name="screenshot">
<div class="ph3">
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-purple" href="#0">Button Text</a>
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-light-purple" href="#0">Button Text</a>
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-hot-pink" href="#0">Button Text</a>
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-dark-pink" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-navy" href="#0">Button Text</a>
<a class="f6 link dim br2 ph3 pv2 mb2 dib white bg-dark-blue" href="#0">Button Text</a>
<a class="f6 link dim br2 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">Basic Button with Thin Border</h1>
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib black" href="#0">Button Text</a>
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib near-black" href="#0">Button Text</a>
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib dark-gray" href="#0">Button Text</a>
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib mid-gray" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib purple" href="#0">Button Text</a>
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib light-purple" href="#0">Button Text</a>
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib hot-pink" href="#0">Button Text</a>
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib dark-pink" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib navy" href="#0">Button Text</a>
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib dark-blue" href="#0">Button Text</a>
<a class="f6 link dim br2 ba ph3 pv2 mb2 dib dark-green" href="#0">Button Text</a>
</div>
<div class="ph3 mt4">
<h1 class="f6 fw6 ttu tracked">Basic Button with Border</h1>
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib black" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib near-black" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib dark-gray" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib mid-gray" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib purple" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib light-purple" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib hot-pink" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib dark-pink" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib navy" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib dark-blue" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw1 ph3 pv2 mb2 dib dark-green" href="#0">Button Text</a>
</div>
<div class="ph3 mt4">
<h1 class="f6 fw6 ttu tracked">Basic Button with Thick Border</h1>
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib black" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib near-black" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib dark-gray" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib mid-gray" href="#0">Button Text</a>
</div>
<div class="ph3">
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib purple" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib light-purple" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib hot-pink" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib dark-pink" href="#0">Button Text</a>
</div>
<div class="ph3 mb4">
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib navy" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib dark-blue" href="#0">Button Text</a>
<a class="f6 link dim br2 ba bw2 ph3 pv2 mb2 dib dark-green" href="#0">Button Text</a>
</div>
css
.ba {
border-style: solid;
border-width: 1px;
}
.br2 {
border-radius: .25rem;
}
.bw1 {
border-width: .125rem;
}
.bw2 {
border-width: .25rem;
}
.dib {
display: inline-block;
}
.fw6 {
font-weight: 600;
}
.tracked {
letter-spacing: .1em;
}
.link {
text-decoration: none;
transition: color .15s ease-in;
}
.link:link, .link:visited {
transition: color .15s ease-in;
}
.link:hover {
transition: color .15s ease-in;
}
.link:active {
transition: color .15s ease-in;
}
.link:focus {
transition: color .15s ease-in;
outline: 1px dotted currentColor;
}
.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;
}
.ttu {
text-transform: uppercase;
}
.f6 {
font-size: .875rem;
}
.dim {
opacity: 1;
transition: opacity .15s ease-in;
}
.dim:hover, .dim:focus {
opacity: .5;
transition: opacity .15s ease-in;
}
.dim:active {
opacity: .8;
transition: opacity .15s ease-out;
}