Nifty Poutine Meal

    postcss-pxtorem-multi-value

    0.0.1 • Public • Published

    postcss-pxtorem-multi

    A plugin for PostCSS that support multiple rootValue based on pxtorem

    Install

    $ npm install postcss-pxtorem-multi --save-dev

    Usage

    1. set options which is pxtorem's option array added type
    [{
      type: 'phone',
      rootValue: 16,
      unitPrecision: 5,
      selectorBlackList: [],
      propList: ["font", "font-size", "line-height", "letter-spacing"],
      replace: true,
      mediaQuery: false,
      minPixelValue: 0,
      exclude: null
    }, {
      type: 'pad',
      rootValue: 20,
      unitPrecision: 5,
      selectorBlackList: [],
      propList: ["font", "font-size", "line-height", "letter-spacing"],
      replace: true,
      mediaQuery: false,
      minPixelValue: 0,
      exclude: null
    }]
    
    1. add remark on css file head:root value ${type}

    The plugin will use corresponding option in prev step to generate rem

    Install

    npm i postcss-pxtorem-multi-value

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    11.7 kB

    Total Files

    14

    Last publish

    Collaborators

    • sheeeeep