johno
Projects

Tachyons

Functional CSS for building responsive interfaces.

A modular study of blue and teal rectangles arranged on a spacing grid.

One thing I wanted out of CSS was the ability to try a small change without inventing a name for it. With Tachyons, which I co-created, I can give a card a little padding with pa3, try pa4, and decide between the two while I’m looking at the card.

There are two decisions hiding in that little edit. Somebody picked the values on the spacing scale, and somebody picked a value for this particular card. They can happen at different times. Once the scale is in place, I can use it on a button, a form, or a layout I haven’t thought of yet.

The short class names take a little learning. The payoff comes on the second component that needs the same padding. I already have the CSS for it. That experience changed what I look for when I design a component API, especially which choices are worth sharing across an entire site.

Tachyons — functional CSS for humans.