Package Exports
- jss-preset-default
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jss-preset-default) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Default preset for JSS with selected plugins.
Presets allows to setup JSS quickly with default settings and plugins.
Make sure you read how to use plugins in general.

API
preset()
Preset exports a default function which accepts options. Options is a map of plugin name in camel case and plugin options as value.
It returns a JSS options object, which can be passed to JSS constructor or the setup
.
preset({somePlugin: options})
Setup global JSS instance
import jss from 'jss'
import preset from 'jss-preset-default'
jss.setup(preset())
Setup own JSS instance
import {create} from 'jss'
import preset from 'jss-preset-default'
const jss = create(preset())
Included plugins
- jss-extend — enables inheritance
- jss-nested — enables support for nested rules
- jss-camel-case — allows to write camel cased rule properties
- jss-default-unit — adds units to numeric values
- jss-vendor-prefixer — handles vendor prefixes on the browser
- jss-props-sort — ensures style properties extend each other instead of override
- jss-compose — classes composition
Issues
File a bug against cssinjs/jss prefixed with [jss-preset-default].
License
MIT