https://github.com/unraid/tailwind-rem-to-rem
Tailwind Plugin to Convert Rem units to Rem units
https://github.com/unraid/tailwind-rem-to-rem
Last synced: 3 months ago
JSON representation
Tailwind Plugin to Convert Rem units to Rem units
- Host: GitHub
- URL: https://github.com/unraid/tailwind-rem-to-rem
- Owner: unraid
- Created: 2025-01-31T20:44:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-12T14:18:49.000Z (3 months ago)
- Last Synced: 2026-03-12T20:36:35.192Z (3 months ago)
- Language: JavaScript
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# tailwind-rem-to-rem
A Tailwind CSS plugin that converts REM values in your Tailwind config based on different base font sizes.
```bash
npm install tailwind-rem-to-rem
```
## Usage
Add the plugin to your `tailwind.config.js`:
```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