Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function jssPreset() {
return {
plugins: [
functions(),
global(),
nested(),
camelCase(),
defaultUnit(),
// Disable the vendor prefixer server-side, it does nothing.
// This way, we can get a performance boost.
// In the documentation, we are using `autoprefixer` to solve this problem.
typeof window === 'undefined' ? null : vendorPrefixer(),
propsSort(),
],
};
}
const styles = {
'@global': {
html: {
height: '100%',
},
body: {
height: '100%',
margin: 0,
},
},
}
const jss = create()
jss.use(
functions(),
isolate({
reset: [
'inherit',
{
fontFamily:
'"Proxima Nova", "Helvetica Neue", Arial, Helvetica, sans-serif',
},
],
}),
global(),
extend(),
nested(),
camel(),
unit(),
expand(),
)