4.12.0 • Published 5 years ago

tachyons v4.12.0

Weekly downloads
44,245
License
MIT
Repository
github
Last release
5 years ago

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.

argo-trading@rodriguesmyron/gatsby-theme-podcast@everything-registry/sub-chunk-2872tachyons-validate-classtachyons-validate-classnamestachyons-webpacktailwindcss-tachyonstalk-generating-graphql-apissynosys_site_visualitationsynosys_site_visualizationwanfaweh-tachyonsxkcd-clonerudiment.cssrudiments.csssgpl-statementssharkparty-heatmapreadrcreverse-tachyonsvue-grid2vue-grid2-editable@joneugster/infoviewljsherlock-progressive-imagemtalkhymd-store-schema-generatorhally-packagego-go-nanoframeworks-talkmooyanb-uimd-grower-uinovellapreviewifynewb-ui-managenewb-ui-packagepick-artpex-nodesrangle-react-scriptsquick-menu-testrk-react-redux-scriptsstudiokit-scaffolding-jssketchbook-clitrainkit-dev@aplchian/foo@aplchian/foo2@aplchian/foo5@alingenfelter/foo@alingenfelter/foo2@alingenfelter/foo4@alingenfelter/foo5@chriscortes/foo5@chriscortes/me@chriscortes/foo2@chriscortes/foo4@accurat/chart-library0x@coolversion/schema-generator@coolvision/schema-generatoryellowant-common-clienty-interceptvue-shopvue-nooksvue2-gridwebquest@dumc11/tailwindcss@horrorandtropics/theme-framework@garudacrafts/me@infinitebrahmanuniverse/nolb-tac@kraft-react/theme@leanprover/infoview@mtheodo/foo@mtheodo/foo2@mtheodo/why@narangajay/ui-style-lib@nearform/0x@explorables/repliselmut@explorables/scotts_world@explorables/spinwheels@explorables/stranger_things@explorables/surfing_a_gene_pool@explorables/swarmalators@explorables/the_walking_head@explorables/yo_kohonen@explorables/critically_inflammatory@explorables/cycledelic@explorables/dr_fibryll_and_mr_glyde@explorables/echo_chambers@explorables/flockn_roll@explorables/horde_of_the_flies@explorables/i_sing_well_tempered@explorables/if_you_ask_your_xy@explorables/into_the_dark@explorables/keith_harings_mexican_hat@explorables/kelp@explorables/kick_it_like_chirikov@explorables/lotka_martini@explorables/nah_dah_dah_nah_nah_opus_1984@explorables/particularly_stuck@explorables/prisoners_kaleidoscope@explorables/anomalous_itinerary@explorables/baristas_secret
4.12.0

5 years ago

5.0.0-0

6 years ago

7.0.1-5

6 years ago

4.11.1

6 years ago

4.11.0

6 years ago

7.0.1-4

6 years ago

7.0.1-3

6 years ago

7.0.1-1

6 years ago

4.10.0

6 years ago

4.9.1

7 years ago

4.9.0

7 years ago

4.8.1

7 years ago

4.8.0

7 years ago

4.7.4

8 years ago

4.7.3

8 years ago

4.7.2

8 years ago

4.7.1

8 years ago

4.7.0

8 years ago

4.6.2

8 years ago

4.6.1

8 years ago

4.6.0

8 years ago

4.5.6

8 years ago

4.5.5

8 years ago

4.5.4

8 years ago

4.5.3

8 years ago

4.5.2

8 years ago

4.5.1

8 years ago

4.5.0

8 years ago

4.4.3

8 years ago

4.4.2

8 years ago

4.4.1

8 years ago

4.4.0

8 years ago

4.3.1

8 years ago

4.3.0

8 years ago

4.2.1

8 years ago

4.2.0

8 years ago

4.1.3

8 years ago

4.1.2

8 years ago

4.1.1

8 years ago

4.1.0

8 years ago

4.0.7

8 years ago

4.0.6

8 years ago

4.0.5

8 years ago

4.0.4

8 years ago

4.0.3

8 years ago

4.0.2

8 years ago

4.0.1

8 years ago

4.0.0-beta.35

8 years ago

4.0.0-beta.34

8 years ago

4.0.0-beta.33

8 years ago

4.0.0-beta.32

8 years ago

4.0.0-beta.31

8 years ago

4.0.0-beta.30

8 years ago

4.0.0-beta.29

8 years ago

4.0.0-beta.28

9 years ago

4.0.0-beta.27

9 years ago

4.0.0-beta.26

9 years ago

4.0.0-beta.25

9 years ago

4.0.0-beta.24

9 years ago

4.0.0-beta.23

9 years ago

4.0.0-beta.22

9 years ago

4.0.0-beta.20

9 years ago

4.0.0-beta.19

9 years ago

4.0.0-beta.18

9 years ago

4.0.0-beta.17

9 years ago

4.0.0-beta.16

9 years ago

4.0.0-beta.15

9 years ago

4.0.0-beta.12

9 years ago

4.0.0-beta.11

9 years ago

4.0.0-beta.10

9 years ago

4.0.0-beta.9

9 years ago

4.0.0-beta.8

9 years ago

4.0.0-beta.7

9 years ago

4.0.0-beta.6

9 years ago

4.0.0-beta.5

9 years ago

4.0.0-beta.4

9 years ago

4.0.0-beta.3

9 years ago

4.0.2-beta

9 years ago

4.0.1-beta

9 years ago

4.0.0-beta1

9 years ago

3.1.1

9 years ago

3.1.0

9 years ago

3.0.3

9 years ago

4.0.0

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0-beta-1

9 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago