0.1.0 • Published 6 years ago

fela-base v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Fela Preset & Rules

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

Installation

yarn add fela fela-base

Setup

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

License

MIT