Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wagerfield/fela-base
- Owner: wagerfield
- License: mit
- Created: 2018-05-29T21:38:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-31T01:48:38.000Z (over 4 years ago)
- Last Synced: 2024-12-05T12:46:43.763Z (23 days ago)
- Language: TypeScript
- Size: 111 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
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