fela-base
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i fela-base

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

28 kB

Total Files

53

Last publish

Collaborators

  • wagerfield