by Benito Serna

Styler gem and Tachyons components

A list of examples from the list of Tachyons components, showing you how you can use the styler gem to define the styles composing the tachyons css classes.

< Back to index

Double ring

  styles = do
    style :container, %w(pa4 tc)
    style :img, %w(br-100 h3 w3 dib pa1 ba b--black-20)

<div class="<%= styles.container %>">
  <img src="" class="<%= styles.img %>" alt="avatar">