/fela-base

Fela Preset & Rules

Primary LanguageTypeScriptMIT LicenseMIT

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