Skip to content

sapegin/jss-preset-default

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSS logo

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.

JSS

![Gitter](https://badges.gitter.im/Join Chat.svg)

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

About

Preset for JSS installs default plugins and settings.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%