MODULE: Device Pixel Ratio
Demo + Code: http://jrdn.io/d5or
I typically prototype across various devices with various screen densities. I do this because at Microsoft it's hard to know what type of a device someone will have when viewing my Prototypes. I also like to keep my base units and sizes at 1x to keep things simple. I needed a tool to help me do this...
So, I created a module to help me convert values I use when creating UI elements to a value based off of the DevicePixelRatio to ensure the layout is consistent across devices. It helps to keep a UI consistent regardless if you're viewing in Framer Studio, in a browser, and on a 1x, 2x, or 3x device.
I hope this helps you on your prototypes. It's definitely helped me!
If anyone finds any issues or irregularities, let me know right away and I'll get it fixed up.