rule() Interface

February 4, 2018 ยท View on GitHub

Given a CSS-like object returns a string of class names.

Example

import rule from 'freestyler/lib/rule';

const classNames = rule({
    color: 'blue',
    background: 'yellow',
    border: '1px solid tomato',
});