react-styleguidist
Version:
React components style guide generator
24 lines (20 loc) • 928 B
JavaScript
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import jss from 'jss';
import global from 'jss-global';
import isolate from 'jss-isolate';
import nested from 'jss-nested';
import camelCase from 'jss-camel-case';
import defaultUnit from 'jss-default-unit';
import compose from 'jss-compose';
import nonInheritedProps from './nonInheritedProps';
jss.setup({
plugins: [global(), isolate({
reset: _extends({}, nonInheritedProps, {
// “Global” styles for all components
boxSizing: 'border-box',
// Allow inheritance because it may be set on body and should be available for user components
fontFamily: 'inherit',
lineHeight: 'inherit'
})
}), nested(), camelCase(), defaultUnit(), compose()]
});