Pranab's site โ€” Home

UI/UX Design Principles

Nov 07, 2023 (IST)

Show/Hide Contents
  1. Mobile first
    1. Interactive area in lower half
  2. Large fonts
  3. Clear labels
  4. Large interactive areas
  5. Consistent interactive element style
  6. Dark mode
    1. Slightly lowered contrast
  7. Lightweight
  8. Content first
  9. Clarity over cleverness
  10. Design Annotations
  11. Accessibility for everyone

Some of the choices behind most of my designs. I can sometimes sacrifice these, based on context, but I adhere to them most of the time.

Mobile first๐Ÿ”—

Most users of any digital product are on mobile. Especially if itโ€™s a website โ€” even users of a desktop application will visit a website on mobile.

Designing for mobile also helps figure out what is most important in a product.

Also, itโ€™s easier to spread out content from a mobile layout to a desktop layout, than to try to fit in the contents of a desktop layout into a mobile screen.

Interactive area in lower half๐Ÿ”—

Having interactive elements in the top half requires users to move a hand to the top of the phone, or to make awkward reaches with their thumb.

Instead, I put buttons at the middle of the screen or lower. If the user scrolls down, buttons will also move up the screen.

Large fonts๐Ÿ”—

I use large fonts to accomodate for conditions with hampered vision, such as age, moving vehicles, walking, etc.

This usually means 14pt or 16pt for body text.

Clear labels๐Ÿ”—

Icons can often have multiple meanings, which might not be obvious to some users, or might even have no meaning to some people.

Large interactive areas๐Ÿ”—

I make interactive areas roughly 44 pixels by 44 pixels or larger, usually with a minimum of 8 pixel gaps between them.

This makes it easier to target for users, without accidentally selecting the wrong element.

Consistent interactive element style๐Ÿ”—

I try to have a distinctive style for buttons and links so that users immediately know what elements can be interacted with, and what elements are safe to select.

Modern UIs nowadays often have a dozen different button styles, some of which even look like plain text. It sometimes feels like there is no system for what constitutes a button versus images or text.

Dark mode๐Ÿ”—

Using a website at night time, or in a dark environment, shouldnโ€™t subject the viewer to (sudden) brightness, which can negatively affect their vision, their sleep, and more.

For the same reason, I try to use warm colours1, though people generally expect blue for interactions, and red for negative interactions.

1

Night light filters do the same, because of something to do with white or blue-ish colours.

Slightly lowered contrast๐Ÿ”—

100% white text on a 100% black background can cause a โ€œhalationโ€ effect for some users, which means it looks like a light pointed at your eyes, where the edges are blurry and hard to see.

There might be some other issues with full contrast, but this is a good enough reason to lower it.

Lightweight๐Ÿ”—

Websites should be usable with low network conditions, such as being underground, or in a building.

This can be achieved by only including necessary content, and optimising images and videos.

For images, I compare file sizes for different formats. Generally, I use SVGs for simple graphics and illustrations, and PNGs or JPGs for photographs, though the AVIF format is supposed to be the best.

A related idea is progressive enhancement, where you ensure a basic version of the main content is actually usable as is, and then build better UI/UX on top of that. This requires some understanding of HTML, and interacting with the developer.

Content first๐Ÿ”—

The content of the page should stand out.

You can see it in my site design: in each page, the title is highlighted, and then it continues on into the body of the post. I even sacrificed the navigation bar on top so that the content had more space/prominence when the user first loads a page.

Clarity over cleverness๐Ÿ”—

I try to avoid clever designs, because some users will simply be confused. For example, itโ€™s not really that obvious that you must scroll up (on mobile) to show a hidden navigation bar.

Design Annotations๐Ÿ”—

On screen buttons arenโ€™t the only method of interaction. Keyboard shortcuts and touch gestures are not obvious from designs. Designs should include annotations for these things.

While I donโ€™t actually annotate things, thatโ€™s mostly because of no particular need, and I do consider them and explain them in writing.

Accessibility for everyone๐Ÿ”—

This ties into many of the points above: Everyone has โ€œdisabilitiesโ€ of some variety at one point or the other.

Injuries can reduce dexterity in the hands, moving vehicles can hamper vision and reading, and crowded environments impact hearing.