Created
May 31, 2024 15:07
-
-
Save brandonbarringer/ec33af069d960439f62f608a50d0cab8 to your computer and use it in GitHub Desktop.
JS rem function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const rem = (...px) => px.map((p) => `${p / 16}rem`).join(' '); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment