10.0.2-0 • Published 5 years ago

oliviertassinari-jss-preset-default v10.0.2-0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Default preset for JSS with selected plugins

Preset allows to setup JSS quickly with default settings and a number of plugins so that you don't need to learn how to setup plugins.

Gitter

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.

import preset from 'jss-preset-default'

preset({somePlugin: {}})

Setup global JSS instance

import jss from 'oliviertassinari-jss'
import preset from 'jss-preset-default'

jss.setup(preset())

Setup own JSS instance

import {create} from 'oliviertassinari-jss'
import preset from 'jss-preset-default'

const jss = create(preset())

Issues

File a bug against cssinjs/jss prefixed with [jss-preset-default].

License

MIT