Skip to content
/ jss-px Public

Adds default px unit to numeric values where needed.

License

Notifications You must be signed in to change notification settings

arbor/jss-px

Repository files navigation

Default value unit plugin for JSS

This plugin adds px to values for jss.

Take a look at examples directory.

exports.styles = {
    button: {
        'font-size': 20,
        'z-index': 1,
        'line-height': 1.2
    }
}
button {
    font-size: 20px;
    z-index: 1;
    line-height: 1.2
}

Register plugin

var jss = require('jss')
var px = require('jss-px')
jss.use(px)

Run tests

Locally

npm i
open test/local.html

From github

Tests

License

MIT

About

Adds default px unit to numeric values where needed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published