An open API service indexing awesome lists of open source software.

https://github.com/ratson/tachyons-in-js

Use tachyons with your favorite CSS-in-JS composition solution.
https://github.com/ratson/tachyons-in-js

atomic-css css-in-js functional-css tachyons tachyons-css

Last synced: about 1 month ago
JSON representation

Use tachyons with your favorite CSS-in-JS composition solution.

Awesome Lists containing this project

README

          

# tachyons-in-js

Use [tachyons](http://tachyons.io) with your favorite CSS-in-JS composition solution.

## Differences
- `snake_cased` rather than `kebab-cased`

## Usage
Works great with [aphrodite](https://github.com/Khan/aphrodite):
```css
:root {
// fill in all of the tachyons default variables,
// or import 'tachyons-in-js/variables.css';
}
```

```javascript
import { StyleSheet } from 'aphrodite';
import t from 'tachyons-in-js';

const styles = StyleSheet.create({
foo: {
...t.ma2,
...t.ma2_ns,
...t.bg_black,
...t.ph2,
...t.ph3_m,
...t.ph3_l,
},
});
```

## Credit

Fork of [tachyons-js](https://github.com/jongold/tachyons-js), thanks @jongold for creating it.