tachyons README

The project's README from github.com/tachyons-css/tachyons. As one markdown file: README.md.

TACHYONS

Functional CSS for humans.

Quickly build and design new UI without writing CSS.

Principles

Features

Getting Started

Docs can be found at http://tachyons.io/docs The modules are generally pretty small and thus quick and easy to read.

Use the CDN

The quickest and easiest way to start using Tachyons is to include a reference to the minified file in the head of your HTML file.

<link rel="stylesheet" href="https://unpkg.com/tachyons@4/css/tachyons.min.css">

Local Setup

Clone the repo from Github and install dependencies through npm.

git clone https://github.com/tachyons-css/tachyons.git
cd tachyons
npm install

Dev

If you want to just use everything in tachyons/src as a jumping off point and edit all the code yourself, you can compile all of your wonderful changes by running:

npm start

This will output both minified and unminified versions of the CSS to the CSS directory and watch the src directory for changes. It's aliased to the command:

npm run build:watch

If you'd like to just build the CSS once without watching the src directory, run:

npm run build

If you want to check that a class hasn't been redefined or 'mutated,' there is a linter to check that all of the classes have only been defined once. This can be useful if you are using another library or have written some of your own CSS and want to make sure there are no naming collisions. To do this run the command:

npm run mutations

Docs

The tachyons docs located at http://tachyons.io are all open source and located at https://github.com/tachyons-css/tachyons-css.github.io

You can clone the docs and use them as a template for documenting your own design system / patterns / components. While not everything is automated, the component library generation makes it extremely easy to generate and organize the documentation for components as demonstrated at http://tachyons.io/components

Community Resources

Contributing

Please read our code of conduct for contributors.

Tachyons in Production

A longer list of sites that use tachyons in production can be found in sites.md We love letting the community see what people are building. Please add your link to sites.md in a PR or by opening an issue if you're willing to share to your site or project.

Featured Sites

And of course...

Help

If you have a question or need help feel free to open an issue here or jump into the Tachyons slack channel.

tachyons (tachyons-css/tachyons)

Searching Database…

11.7K ·GitHub
What is this?Tachyons is a functional CSS framework for quickly building fast, responsive UIs without writing custom CSS. You compose interfaces using small, single-purpose utility classes.
Is this a UI component library or just a set of utility classes?It's a utility-first CSS library (not components or a JS framework) with single-purpose classes you combine in HTML, similar in spirit to atomic/functional CSS tools.
How do I add it to a project?Easiest way is to link the minified CSS file via CDN in your HTML head, or clone the repo and install dependencies with npm for local development.
Do I need a build tool to use it?No, you can just use the CDN link directly in plain HTML. A build step is only needed if you want to customize the source and compile it yourself with the included PostCSS-based tooling.
Is it compatible with frameworks like React or Angular?Yes, since it's just CSS classes, it works with plain HTML and any JS framework.
How big is the CSS file?Tachyons is lightweight, around 14kB, and optimized for maximum gzip compression.
Does it include a responsive grid system?Yes, it ships with an infinitely nestable, fully responsive grid system.
What accessibility features does it offer?It includes 490 accessible color combinations and is designed so CSS doesn't impede accessibility or HTML's default functionality.
How do I check for class naming conflicts?Run the included linter (immutable-css) via 'npm run mutations' to verify no class has been redefined more than once.
Size
18.1 MB
Stars
11.7K
Age
12y
Commits · 90 Days