Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including jss-preset-default with all npm packages installed. Try it out:

require("jss/package.json"); // jss is a peer dependency. var jssPresetDefault = require("jss-preset-default")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jss-preset-default v4.5.0

Default preset for JSS with selected plugins.

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.

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())

Issues

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

License

MIT

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free