UX Collective

We believe designers are thinkers as much as they are makers. https://linktr.ee/uxc

Follow publication

Member-only story

Pixel-perfect design — a question of doing the math

Eva Schicker
UX Collective
Published in
4 min readJul 30, 2021

If yes, you can relax. If no, this is even more important.

A 1-pixel grid illustrating 16-pixel UI elements. Each element is set 16px x 16px, the square in the center with rounded corner radius, and the square on the right with fully rounded radius creating a circle. Designed with XD.
A 1-pixel grid illustrating 16-pixel UI elements. Each element is set 16px x 16px, the square in the center with rounded corner radius, and the square on the right with fully rounded radius creating a circle. Designed with XD.

Pixel-perfect design provides the most precise creative content design as every pixel is accounted for and utilized

For example, a static iPhone X screen viewport measures 375 x 812 pixels, (pixel ratio of about 3). This provides the designer with 304,500 pixels to design with. That is a lot of pixels to create with.

For the design blueprint, or wireframe, screen elements need to be separated into units. Units need be specified either in actual pixel, or in percentage proportion to the device screen size. Maximum user experience, such as tapping, scrolling, and zooming, needs to be integrated into the design elements.

Pixel measurements are design concept guides, and can get written as em/rem, based on css presets base em/rem (root em), for example, root font size of 12 px div {font-size: 1.5rem;} = 18px.

Lead UI elements, such as top status and bottom toolbars, guide the designer with precise pixel specifications

In the iPhone X example, at 375 px w x 812 px h, the required UI elements are part of the design screen.

Section of the iPhone X UI screen top status bar, illustrating a height of 44 pixels, pre-set by iOS guidelines.
Figure 1: iPhone X UI top status bar, pre-set by iOS guidelines.

The top status bar comes with a preset height of 44 pixels. This is an important UI element to start with, adding a top margin of 44 px and thereby already reducing the overall size of the design screen.

Section of the iPhone X UI screen bottom tab/tool bar illustrating a height of 83 pixels, pre-set by iOS guidelines.
Figure 2: iPhone X UI screen bottom tab/tool bar, pre-set by iOS guidelines.

If a bottom tab/toolbar is needed, as a preset UI element, it has a height of 83 pixels. At the height of 83 pixels, this height specification integrates maximum user finger tapping interaction.

Thus, the actual design area is now set at 375 px width by 685 px height, from the actual screen size of 375 px width by 812 px height at the onset.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Written by Eva Schicker

Hello. I write about UX, UI, AI, animation, tech, fiction, art, & travel through the eyes of a designer & painter. I live in NYC. Author of Princess Lailya.

Responses (2)

Write a response

Pixels are NOT an accessible metric as they do not scale with user preferences, thus the old saying "If you're thinking in pixels, someone isn't thinking"
It's called EM / REM, use 'em!
The entire notion of pixel based design is utterly ignorant of…

--

I'm a little confused about what you actually mean by "pixel perfect" in this context.
So when you say that designers should be aware of the pixels, I'm thinking:
"What's an example of the opposite?"
You mention topbar and bottom bar, and I do agree…

--