@rubakas/pro-rata-rem

0.1.4 • Public • Published

pro-rata-rem

Responsive Root Element for TailwindCSS

Install the plugin from npm:

$ npm install pro-rata-rem

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    // ...
    require('pro-rata-rem'),
    // ...
  ],
};

This plugin will generate following CSS classes, apply one to your root element (html):

/* Responsive Root element proportional to 6px */
.pro-rata-rem--kids
{
  ...
}

/* Responsive Root element proportional to 4px */
.pro-rata-rem--inclusive {
  ...
}

/* Responsive Root element proportional to 3px */
.pro-rata-rem--critical {
  ...
}

License

pro-rata-rem is licensed under the MIT License.

Credits

Created with create-tailwind-plugin.

Package Sidebar

Install

npm i @rubakas/pro-rata-rem

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

8.15 kB

Total Files

10

Last publish

Collaborators

  • andriytyurnikov