Skip to content

Tachyons

A small, utility-class CSS library for building layouts without writing custom CSS.

Stars
11.7k
Forks
659
Licence
MIT
Language
CSS
Last update
4 months ago
Type
Library

What it is

Tachyons is a CSS library made of small single-purpose classes, such as ones for spacing, color, or layout, that you add directly to HTML elements. Instead of writing your own stylesheet, you combine these classes to style a page. The README says it is lightweight (about 14kB) and designed to be responsive and mobile-first.

  • Add the CDN stylesheet to an HTML page and style it with classes, with no separate CSS file
  • Build a responsive grid layout using the nestable grid system described in the README
  • Run the included linter to check for class name collisions with other CSS
  • Use the Tachyons docs as a template for documenting your own design system

Great for

  • Developers who want to prototype or build a UI quickly with plain HTML or a component framework
  • Front-end developers who prefer utility classes over writing custom CSS
  • Teams that want a consistent 8px spacing grid and a fixed color palette
  • Designers who want to build and tweak layouts directly in the browser

Not ideal for

  • Projects that already rely on a large established framework such as Bootstrap or Tailwind and do not want a second system, since class sets may overlap and conflict
  • Teams that want a fully custom visual identity built from scratch, because the library's look and class naming are opinionated
Step-by-step guide: how to use TachyonsInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    You'll need: Node.js and npm (only needed for local setup; the CDN option requires none)

    Clone the repository

    git clone https://github.com/tachyons-css/tachyons.git

    Enter the folder and install dependencies

    cd tachyons && npm install
  2. 2

    Run it

    • For the quickest start, add the CDN link from the README to the head of your HTML file: <link rel="stylesheet" href="https://unpkg.com/tachyons@4/css/tachyons.min.css">
    • Apply classes to your HTML elements and open the page in a browser
    • Read the docs at http://tachyons.io/docs for the class reference
  3. 3

    Get the most out of it

    • Use npm start to build minified and unminified CSS while watching the src folder for changes
    • Run npm run mutations to check that no class has been redefined
    • Browse the component library at http://tachyons.io/components for ready-made patterns
    • Try the community resources such as Tachyons TLDR for quick class lookup

Downloads

Strengths

  • Small file size and designed for gzip compression, according to the README
  • Works with plain HTML and several frameworks mentioned in the README
  • Includes a documented class reference and community learning resources

Trade-offs

  • Class-heavy HTML can become verbose and harder to read at scale
  • The README does not detail browser support or long-term maintenance status, so verify these before relying on it

How it compares

ProjectStarsTypeLevelUpdatedBest for
tachyons (this)11.7kLibrarybeginner4 months agoDevelopers who want to prototype or build a UI quickly with plain HTML or a component framework
tailwindcss98.3kLibraryintermediate4 days agoWeb developers who build their own interfaces and want to avoid writing large custom stylesheets
bootstrap175kLibrarybeginner4 days agoDevelopers building responsive websites or web app interfaces quickly
bulma50kLibrarybeginner2 months agoDevelopers who want a quick, consistent styling baseline for a web page
TW-Elements13.2kLibraryintermediate7 months agoDevelopers already using Tailwind CSS who want prebuilt interactive components
hyperui12.3kLibrarybeginner12 days agoDevelopers building marketing sites with Tailwind CSS

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.