How to use fela-plugin-unit - 1 common examples

To help you get started, we’ve selected a few fela-plugin-unit 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 robinweser / fela / examples / example-with-styleguidist / src / common / createFelaRenderer.js View on Github external
const createRenderer = () => {
  const plugins = [
    unit('px'),
    placeholderPrefixer(),
    friendlyPsuedo(),
    ...webPreset,
    embedded(),
    namedMediaQuery(mediaQueries),
  ]
  const enhancers = [combineArrays()]

  if (process.env.NODE_ENV === 'development') {
    plugins.push(
      validator({
        logInvalid: true,
        deleteInvalid: true,
      })
    )
    plugins.push(whitelistMediaQuery(mediaQueries))

fela-plugin-unit

Fela plugin to automatically add units if required

MIT
Latest version published 2 years ago

Package Health Score

75 / 100
Full package analysis

Popular fela-plugin-unit functions