Skip to content

Bulk pixels to EM/REM converter and calculator based on pixel grid system

License

Notifications You must be signed in to change notification settings

anithegregorian/bulk_px_em_calc

Repository files navigation

Bulk Pixels to EM/REM calculator and converter


I often find it difficult following design patterns/systems where each adds a different variation of spacings, font-size and line-heights.

While most find it easy to just kickstart with Bootstrap or TailwindCSS defaults and then override them resulting in an over-bloated CSS, it's not good in practice. One of the pain-points in implementing design systems/patterns is how spacings, font-sizes and line-heights would behave responsively.

Though there are some new and promising features recently introduced in CSS like min(), max() and clamp() over calc() which I've started to use on few projects, I still go through ton of conversions between pixels to rem.

Why REM?

Because it has only one ultimate root parent <html> unlike em which scales nicely on every device, and it's predictable. REM's are used by default when generating code.

The 4px Grid System

It's a reasonably robust grid system to control your design both aesthetically and visually on any device. The 4px grid system is used by:

Useful Resources

Here's a list of tools and utilities that might prove useful in your front-end development.

Questions or Queries - mail me (dont expect prompt reply): [email protected]


Built with ❤️ on AlpineJS and PicoCSS

About

Bulk pixels to EM/REM converter and calculator based on pixel grid system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published