@rubakas/fractio-rem
v0.2.11
Published
Fractional root element space and size scale
Downloads
5
Maintainers
Readme
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.