Basic button

Button Text Button Text Button Text Button Text
Button Text Button Text Button Text Button Text
Button Text Button Text Button Text

Basic Button with Thin Border

Button Text Button Text Button Text Button Text
Button Text Button Text Button Text Button Text
Button Text Button Text Button Text

Basic Button with Border

Button Text Button Text Button Text Button Text
Button Text Button Text Button Text Button Text
Button Text Button Text Button Text

Basic Button with Thick Border

Button Text Button Text Button Text Button Text
Button Text Button Text Button Text Button Text
Button Text Button Text Button Text

Basic

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 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 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;
}

Install via npm Only installs the needed tachyons-modules for this component

npm i --save tachyons-borders tachyons-border-radius tachyons-border-widths tachyons-display tachyons-font-weight tachyons-letter-spacing tachyons-links tachyons-skins tachyons-spacing tachyons-text-transform tachyons-type-scale tachyons-hovers

Other Components

articles

Feature Full Bleed Background Large Title Text Left Title Top Border Left Title Photo Essay Single Column Large Title Title Text Image Title Text

avatars

Circle Border Circle Double Ring Rounded Large Rounded Medium Rounded Small Square

banners

Basic

buttons

Basic Pill Grow Pill

cards

Album Centered Album Left News Card Product Card Profile Card Title Subtitle Profile Card Text Card

collections

Albums Movies Posters Dim Posters Square Title Subtitle

definition-lists

Simple

footers

Simple Large Type Small Print Social Circles Social Text Social

forms

Newsletter Subscription Sign In Sign Up

headers

Circle Avatar Title Subtitle Rounded Avatar Title Subtitle Startup Hero

layout

Aspect Ratio 16x9 Aspect Ratio 1x1 Aspect Ratio 3x4 Aspect Ratio 4x3 Aspect Ratio 4x6 Aspect Ratio 5x7 Aspect Ratio 5x8 Aspect Ratio 6x4 Aspect Ratio 7x5 Aspect Ratio 8x5 Aspect Ratio 9x16 Centered Container Five Column Collapse Alternate Five Column Collapse Asymmetrical Five Column Collapse Mixed Five Column Collapse One Five Column Fixed Table Layout Grid Mixed Rows Fixed Table Layout Grid Flag Object Bottom Flag Object Collapse Flag Object Top Flag Object Four Column Collapse Two Collapse One Four Column Collapse Two Four Column Full Bleed 16x9 Full Bleed 4x6 Full Bleed 5x7 Full Bleed 5x8 Full Bleed 6x4 Full Bleed 7x5 Full Bleed 8x5 Full Bleed 9x16 Full Bleed Square Full Screen Centered Title Horizontal Aspect Ratios Three Column Collapse One Three Column Two Column Collapse One Two Column

lists

Border Spaced Border Tight Follower Notifications Rounded Square Avatar Follower Notifications Hashtags Items Image Title Price Large Links Inline Links Animate Color Links Inline Links With Borders Inline Slab Stat Large Slab Stat Small Slab Stat Title Text

nav

Fixed Semi Transparent Large Title Link List List Overflow Logo Links Inline Collapse Logo Links Inline Logo Titles Links Centered Title Link List

pages

4x4 Mixed Grid Double Swiss Cover Five Columns

quotes

Left Border Pull Quote

text

Large Paragraph Narrow Paragraph Paragraph Small Narrow Paragraph Small Paragraph Wide Paragraph