# tachyons-cli

> Postprocess tachyons stylesheets

Latest version **1.3.3** (published 2019-10-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install tachyons-cli
pnpm add tachyons-cli
yarn add tachyons-cli
bun add tachyons-cli
```

Provides the command `tachyons`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.3 |
| Published | 2019-10-27 |
| First published | 2015-10-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 15 |
| Unpacked size | 189.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 74 |
| Author | John Otander |
| Maintainers | donnieberg, johno, mrmrs |
| Keywords | tachyons, css, cli, cli-app |

## Links

- npm: https://www.npmjs.com/package/tachyons-cli
- Repository: https://github.com/tachyons-css/tachyons-cli
- Homepage: https://github.com/tachyons-css/tachyons-cli#readme
- Issues: https://github.com/tachyons-css/tachyons-cli/issues
- npm.io page: https://npm.io/package/tachyons-cli

## Dependencies (15)

- [meow](https://npm.io/package/meow.md) ^5.0.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [dedent](https://npm.io/package/dedent.md) ^0.7.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [cssstats](https://npm.io/package/cssstats.md) ^3.4.0
- [is-blank](https://npm.io/package/is-blank.md) ^2.1.0
- [copy-files](https://npm.io/package/copy-files.md) ^0.1.0
- [is-present](https://npm.io/package/is-present.md) ^1.0.0
- [file-exists](https://npm.io/package/file-exists.md) ^5.0.1
- [css-mqpacker](https://npm.io/package/css-mqpacker.md) ^7.0.0
- [immutable-css](https://npm.io/package/immutable-css.md) ^1.1.2
- [tachyons-build-css](https://npm.io/package/tachyons-build-css.md) ^1.8.1
- [authors-to-markdown](https://npm.io/package/authors-to-markdown.md) ^0.1.0
- [single-trailing-newline](https://npm.io/package/single-trailing-newline.md) ^1.0.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.3.3 (latest) — 2019-10-27
- 1.3.2 — 2018-07-20
- 1.3.1 — 2018-07-20
- 1.3.0 — 2018-03-04
- 1.2.0 — 2017-11-04
- 1.1.0 — 2017-11-01
- 1.0.11 — 2017-04-14
- 1.0.10 — 2016-11-01
- 1.0.9 — 2016-11-01
- 1.0.8 — 2016-09-20
- 1.0.7 — 2016-09-19
- 1.0.6 — 2016-09-08
- 1.0.5 — 2016-09-06
- 1.0.4 — 2016-08-26
- 1.0.3 — 2016-08-25
- … 16 more at https://npm.io/package/tachyons-cli/versions

## README

# tachyons-cli [![Build Status](https://secure.travis-ci.org/tachyons-css/tachyons-cli.svg?branch=master)](https://travis-ci.org/tachyons-css/tachyons-cli) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

Postprocess Tachyons stylesheets with a CLI app.

This module is used to process Tachyons css modules and generate their documentation.
It is leveraged in an [npm script](https://github.com/tachyons-css/tachyons-base/blob/d55f2f4458b1e03c582f8a6c86a41d964512775f/package.json#L34) shared among all modules.

It is meant to be installed globally with the `--global` flag, and requires `v4` of node or higher.

## Installation

```bash
npm install --global tachyons-cli
```

## Usage

```sh
$ tachyons --help

  Postprocess tachyons stylesheets

  Usage
    $ tachyons <input.css>

  Options
    -m, --minify Minify the output stylesheet
    -r, --repeat Repeat class names to increase specificity
    -a, --authors Dynamically add authors based on package.json
    -n, --new Generate a new Tachyons project
    --rtl Generate rtl supported css
    --generate-docs Generate documentation for a given module
    --package The path to the module package to be documented
    --preserve-variables Preserve CSS variables in output

  Example
    $ tachyons src/tachyons.css > dist/c.css
    $ tachyons src/tachyons.css > dist/c.css --minify
    $ tachyons src/tachyons.css > dist/c.repeated.css --repeat
    $ tachyons src/tachyons-type-scale.css --generate-docs --package=./package.json > readme.md
    $ tachyons --new=my-new-project
```

#### Within a Tachyons css module

```sh
$ tachyons src/tachyons-base.css > css/tachyons-base.css && \
  tachyons src/tachyons-base.css --minify > css/tachyons-base.min.css && \
  tachyons src/tachyons-base.css --generate-docs --package=../../package.json > readme.md
```

## Development

```sh
$ npm t
```

## Related

- [`tachyons`](https://github.com/tachyons-css/tachyons)
- [`tachyons-build-css`](https://github.com/tachyons-css/tachyons-build-css)
- [`postcss`](https://github.com/postcss/postcss)
- [`cssstats`](https://github.com/cssstats/cssstats)
- [`immutable-css`](https://github.com/johnotander/immutable-css)

## License

ISC

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Crafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).

***

> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).

---
_Source: https://npm.io/package/tachyons-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
