How to use jss-plugin-isolate - 1 common examples

To help you get started, we’ve selected a few jss-plugin-isolate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ubergrape / grape-electron / src / pages / index.js View on Github external
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(),
)

jss-plugin-isolate

True rules isolation through automatic properties reset.

MIT
Latest version published 2 years ago

Package Health Score

64 / 100
Full package analysis

Popular jss-plugin-isolate functions