@unraid/tailwind-rem-to-rem
v2.0.0
Published
Converts Rem to Rem values in your Tailwind Config
Downloads
1,336
Readme
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-remUsage
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 fromnewFontSize: The new font size to convert to
License
MIT
