AstraUI

Foundations

Screen sizes

Web

For web design, it is important to consider various screen sizes to ensure a responsive layout.

Device TypeWidth (px)
Small devices (mobile)320 - 480
Medium devices (tablets)481 - 768
Large devices (desktops)769 - 1024
Extra large devices (large desktops)1025 and up

Android

Android devices come in a variety of screen sizes and densities. Use dp (density-independent pixels) for defining dimensions and sp (scale-independent pixels) for text sizes to ensure consistency across different screens.

Size CategoryDimensions (dp)
Small320 x 426
Normal360 x 640
Large480 x 800
X-Large720 x 1280

iOS

iOS devices also come in a range of sizes. Apple's Human Interface Guidelines provide detailed information on designing for different iOS devices.

Size CategoryDimensions (pt)
Small320 x 568
Phone375 x 812
Tablet768 x 1024