A Tailwind CSS plugin that converts REM values in your Tailwind config based on different base font sizes.
npm install tailwind-rem-to-rem
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 }),
},
},
};
baseFontSize
: The base font size to convert fromnewFontSize
: The new font size to convert to
MIT