• Stars
    star
    11,587
  • Rank 2,717 (Top 0.06 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Functional css for humans

TACHYONS

Functional CSS for humans.

Quickly build and design new UI without writing CSS.

Principles

  • Everything should be 100% responsive
  • Everything should be readable on any device
  • Everything should be as fast as possible
  • Designing in the browser should be easy
  • It should be easy to change any interface or part of an interface without breaking any existing interfaces
  • Doing one thing extremely well promotes reusability and reduces repetition
  • Documentation helps promote reusability and shared knowledge
  • CSS shouldn't impede accessibility or the default functionality of HTML
  • You should send the smallest possible amount of code to the user

Features

  • Mobile-first CSS architecture
  • 490 accessible color combinations
  • 8px baseline grid
  • Multiple debugging utilities to reduce layout struggles
  • Single-purpose class structure
  • Optimized for maximum gzip compression
  • Lightweight (~14kB)
  • Usable across projects
  • Growing open source component library
  • Works well with plain HTML, React, Ember, Angular, Rails and more
  • Infinitely nestable responsive grid system
  • Built with PostCSS

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

  • DWYL Learn Tachyons: Learn how to use Tachyons to craft beautiful, responsive, functional and fast UI with minimal CSS
  • Tachyons TLDR: Quick lookup for Tachyons classes, scales and color palette
  • Tachyons Pro: Fun quiz for memorizing class names

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...

Sponsors

Development of Tachyons is supported by

Help

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

More Repositories

1

react-native-style-tachyons

Better styling for React Native
TypeScript
681
star
2

tachyons-sass

Transpiled Sass partials for Tachyons
SCSS
318
star
3

generator

Generate a custom Tachyons build from a config file
JavaScript
314
star
4

tachyons-custom

Tachyons with variables: for easy customization
CSS
203
star
5

tachyons-styled-react

Tachyons implemented with emotion and styled-system. Sits on create-react-app.
JavaScript
201
star
6

tachyons-tldr

quick lookup for tachyon classes, scales and colour palette
JavaScript
181
star
7

tachyons-and-react

[WIP] Documentation on using Tachyons and React together
JavaScript
119
star
8

tachyons-verbose

Functional CSS for humans. Verbose edition.
CSS
107
star
9

tachyons-webpack

A boilerplate for using tachyons with webpack
JavaScript
81
star
10

jekyll-tachyons

Jekyll + Tachyons Boilerplate
CSS
79
star
11

tachyons-css.github.io

Documentation for designing faster than the speed of light
HTML
77
star
12

cli

Cli to postprocess tachyons stylesheets and generate documentation
JavaScript
76
star
13

tachyons-box-sizing

Module moved to the Tachyons monorepo
CSS
40
star
14

tachyons-flexbox

Module moved to the Tachyons monorepo
CSS
40
star
15

tachyons-x-ray

Browser extension for tachyons-debug
JavaScript
28
star
16

tachyons-build-css

Transpile Tachyons postcss to vanilla css
JavaScript
27
star
17

tachyons-theme-ui

Theme UI implementation of Tachyons
JavaScript
25
star
18

tachyons-system

Tachyons theme for styled-system http://jxnblk.com/styled-system
JavaScript
24
star
19

tachyons-amp

Stripped down version of Tachyons for developing with Google AMP
CSS
18
star
20

tachyons-debug-grid

Module moved to the Tachyons monorepo
17
star
21

tachyons-typography

Module moved to the Tachyons monorepo
CSS
13
star
22

tachyons-spacing

Module moved to the Tachyons monorepo
CSS
13
star
23

tachyons-hovers

Module moved to the Tachyons monorepo
CSS
11
star
24

tachyons-colors

Module moved to the Tachyons monorepo
CSS
10
star
25

palette-generator

JavaScript
10
star
26

tachyons-forms

Module moved to the Tachyons monorepo
HTML
9
star
27

tachyons-queries

Custom media query variables for rework
JavaScript
9
star
28

tachyons-skins

Module moved to the Tachyons monorepo
CSS
9
star
29

tachyons-aspect-ratios

Module moved to the Tachyons monorepo
CSS
7
star
30

tachyons-modules

Get a list of all Tachyons CSS modules
JavaScript
7
star
31

tachyons-links

Module moved to the Tachyons monorepo
CSS
7
star
32

tachyons-display

Module moved to the Tachyons monorepo
CSS
7
star
33

tachyons-cms

CSS
7
star
34

tachyons-base

Module moved to the Tachyons monorepo
CSS
7
star
35

tachyons-z-index

Module moved to the Tachyons monorepo
CSS
6
star
36

tachyons-type-scale

Module moved to the Tachyons monorepo
CSS
5
star
37

tachyons-negative-margins

Module moved to the Tachyons monorepo
CSS
5
star
38

tachyons-utilities

Module moved to the Tachyons monorepo
CSS
5
star
39

tachyons-opacity

Module moved to the Tachyons monorepo
CSS
5
star
40

tachyons-docs

(WIP) React Documentation website for tachyons modules and components
JavaScript
4
star
41

tachyons-display-verbose

CSS
4
star
42

tachyons-widths

Module moved to the Tachyons monorepo
CSS
3
star
43

tachyons-skins-pseudo

Module moved to the Tachyons monorepo
CSS
3
star
44

tachyons-border-colors

Module moved to the Tachyons monorepo
CSS
3
star
45

tachyons-visibility

Module moved to the Tachyons monorepo
CSS
3
star
46

tachyons-debug

Module moved to the Tachyons monorepo
CSS
3
star
47

tachyons-tables

Module moved to the Tachyons monorepo
CSS
2
star
48

tachyons-borders

Module moved to the Tachyons monorepo
CSS
2
star
49

tachyons-background-size

Module moved to the Tachyons monorepo
CSS
2
star
50

tachyons-coordinates

Module moved to the Tachyons monorepo
CSS
2
star
51

tachyons-text-transform

Module moved to the Tachyons monorepo
CSS
2
star
52

tachyons-background-position

Module moved to the Tachyons monorepo
CSS
2
star
53

tachyons-text-align

Module moved to the Tachyons monorepo
CSS
2
star
54

tachyons-border-widths

Module moved to the Tachyons monorepo
CSS
2
star
55

tachyons-box-shadow

Module moved to the Tachyons monorepo
CSS
2
star
56

tachyons-font-family

Module moved to the Tachyons monorepo
CSS
2
star
57

tachyons-images

Module moved to the Tachyons monorepo
CSS
1
star
58

tachyons-heights

Module moved to the Tachyons monorepo
CSS
1
star
59

tachyons-outlines

Module moved to the Tachyons monorepo
CSS
1
star
60

img

Images for the tachyons docs
1
star
61

tachyons-text-decoration

Module moved to the Tachyons monorepo
CSS
1
star
62

tachyons-border-style

Module moved to the Tachyons monorepo
CSS
1
star
63

tachyons-border-radius

Module moved to the Tachyons monorepo
CSS
1
star
64

tachyons-floats

Module moved to the Tachyons monorepo
CSS
1
star
65

tachyons-rotations

Module moved to the Tachyons monorepo
CSS
1
star
66

tachyons-word-break

Module moved to the Tachyons monorepo
CSS
1
star
67

tachyons-line-height

Module moved to the Tachyons monorepo
CSS
1
star
68

tachyons-max-widths

Module moved to the Tachyons monorepo
CSS
1
star
69

tachyons-clears

Module moved to the Tachyons monorepo
CSS
1
star
70

tachyons-vertical-align

Module moved to the Tachyons monorepo
CSS
1
star
71

tachyons-styles

Empty partial for extending tachyons styles
SCSS
1
star