The max-width of paragraphs on the desktop is 604.391px (33em).
To deal with retina displays (2x for iPhone 4 and above, 3x for iPhone 6plus and above), we need to prepare three resolutions: 605px, 1210px, and 1815px.
Sketch App can export the same image in different resolutions. So we need to create 605px x 403px images (aspect ratio of 1.5 to 1).
import imageMarginTop1x from '../img/margin-top1x.png';
import imageMarginTop2x from '../img/margin-top2x.png';
import imageMarginTop3x from '../img/margin-top3x.png';
The image width needs to be 605px on screens.
max-width
of paragraphs on the desktop is 604.391px (33em).To deal with retina displays (2x for iPhone 4 and above, 3x for iPhone 6plus and above), we need to prepare three resolutions: 605px, 1210px, and 1815px.
Sketch App can export the same image in different resolutions. So we need to create 605px x 403px images (aspect ratio of 1.5 to 1).
Then use the following syntax
where the images are imported with
References: