Skip to content

unraid/tailwind-rem-to-rem

Repository files navigation

tailwind-rem-to-rem

A Tailwind CSS plugin that converts REM values in your Tailwind config based on different base font sizes.

npm install tailwind-rem-to-rem

Usage

Add the plugin to your tailwind.config.js:

import tailwindRemToRem from "tailwind-rem-to-rem";

export default {
  theme: {
    extend: {
      fontSize: tailwindRemToRem({ baseFontSize: 16, newFontSize: 10 }),
    },
  },
};

Options

  • baseFontSize: The base font size to convert from
  • newFontSize: The new font size to convert to

License

MIT

About

Tailwind Plugin to Convert Rem units to Rem units

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •