Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jxnblk/tachyons-components

React UI components powered by Tachyons with a styled-components like API
https://github.com/jxnblk/tachyons-components

components react tachyons

Last synced: 9 days ago
JSON representation

React UI components powered by Tachyons with a styled-components like API

Awesome Lists containing this project

README

        

# tachyons-components

[![Build Status][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
![Experimental](https://img.shields.io/badge/status-experimental-orange.svg?style=flat-square)

[build-badge]: https://img.shields.io/travis/jxnblk/tachyons-components/master.svg?style=flat-square
[build]: https://travis-ci.org/jxnblk/tachyons-components
[coverage-badge]: https://img.shields.io/codecov/c/github/jxnblk/tachyons-components.svg?style=flat-square
[coverage]: https://codecov.io/github/jxnblk/tachyons-components

React UI components powered by [Tachyons][tachyons]
with a [styled-components][sc] like API.

```sh
npm install tachyons-components
```

```js
import styled from 'tachyons-components'

const Button = styled('button')`
f6 f5-ns fw6 dib ba
b--black-20 bg-blue white
ph3 ph4-ns pv2 pv3-ns br2
grow no-underline
`
```

```jsx

Hello

```

## Functional styles

```js
const Heading = styled('h2')`
m0
${props => props.big ? 'f1' : 'f2'}
`
```

[tachyons]: http://tachyons.io
[sc]: https://styled-components.com

[MIT License](LICENSE.md)