: Sketch to PhoneGap App - Sizes and Units Wrong Hopefully this is in the correct place! So I've designed a few app screens in sketch and have come to try and code them using PhoneGap but
Hopefully this is in the correct place!
So I've designed a few app screens in sketch and have come to try and code them using PhoneGap but can't seem to get my head around sizes etc..
This is one of the problems I'm having. In Sketch I have got a text input box that is apparently 60px high (I am using the iPhone 6 Artboard (375px wide)). I took this height of 60px and put it in to my CSS but it is absolutely huge and ends up looking nothing like the design.
What sizes and units should I be using to get an accurate representation of my Sketch app in the PhoneGap app.
Thanks
More posts by @Rambettina927
1 Comments
Sorted by latest first Latest Oldest Best
PhoneGap and Cordova use CSS pixels, which means 1x1 CSS pixel on a retina iPhone is drawn with 2x2 real device pixels. iPhone 6S sizes are a bit trickier to understand. About those later.
The common recommendation seems to be on designing for 1x screens in Sketch and then scaling on export appropriately. This would mean 320px wide artboards for older iPhones, and then scaling from there to 640px for 2x retina 5S and such.
Just remember to have all your bitmaps in a high enough resolution so that you do not lose details.
Regarding iPhone sizes, this link might help a bit: www.paintcodeapp.com/news/iphone-6-screens-demystified
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.