0.2.11 • Published 2 months ago

@rubakas/fractio-rem v0.2.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Fractio Rem (@rubakas/fractio-rem)

Fractional root element space and size scale for TailwindCSS

Install the plugin from npm:

$ npm install @rubakas/fractio-rem

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

// tailwind.config.js
module.exports = {
  // ...
  plugins: [
    // ...
    require('@rubakas/fractio-rem'),
    // ...
  ],
};

This plugin will extend spacing and sizing scale with fractional units:

/* uning fractions of rem in your tailwind styles */
.my-component {
  @apply 
    m-3/4r /* 3/4 = 0.75rem margin */
    p-5/6r /* 5/6 = 0.833333rem padding */
    w-10/1r /* 10/1 = 10rem width */
    h-23/6r /* 23/6 = 3.833333rem height */
    ;
}

License

@rubakas/fractio-rem is licensed under the MIT License.

Credits

Created with create-tailwind-plugin.

0.2.11

2 months ago

0.2.10

6 months ago

0.2.9

6 months ago

0.2.8

6 months ago

0.2.7

6 months ago

0.2.6

6 months ago

0.1.4

6 months ago