Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wagerfield/fela-base

Fela Preset & Rules
https://github.com/wagerfield/fela-base

Last synced: 6 days ago
JSON representation

Fela Preset & Rules

Awesome Lists containing this project

README

        

# Fela Preset & Rules

Fela Base consists of a preset config and a collection of rules.

## Installation

```bash
yarn add fela fela-base
```

## Setup

```js
import { createRenderer } from "fela"
import { createConfig } from "fela-base"

const config = createConfig()
const renderer = createRenderer(config)

const rule = ({ size = 100 }) => ({ size })

renderer.renderRule(rule, { size: 50 })
```

## Author

[Matthew Wagerfield][github]

## License

[MIT][mit]

[mit]: https://opensource.org/licenses/MIT
[github]: https://github.com/wagerfield