fela-base
v0.1.0
Published
Fela Preset & Rules
Downloads
2
Readme
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 })