My UX Design Principles

in pursuit of the joy of computing

Published Updated

Once upon a time, this was a style guide for my personal webpage. But I’ve come to incorporate these rules into much of the software I build. Not all of these are universal, but they rarely steer me wrong.

A. Technical

  1. Do much with little, treating network requests and resource use like a golf score
    • ‘Why is this plain text page measured in megabytes?’
    • ‘Can we get latency under 1 frame?’
  2. Dependencies are best kept close at hand and small in number
    • less is more in terms of security and reliability
    • a dependency you’ve vendored can’t change out from under you1
    • import chains inflate build and/or load times
  3. If it’s not needed now, consider loading it later. Prefer hiding the asynchronous nature, silently degrading until the resource is loaded.
  4. Consider that the user may be using surprisingly old hardware2

B. Aesthetic

  1. Eschew corporate “flat design” and reflexive minimalism.
  2. Borrow elements from different eras of computing and print history. There are a lot of cool motifs buried in obsolete software, reference manuals, marketing materials.
  3. Gradients are underrated.
  4. Not everything needs rounded corners.
  5. Depth adds interest and helps the user feel grounded, if it is coherent.
  6. Use relative colors, such that the page looks good with ANY selected primary color.
  7. If this isn’t Neocities: keep styles coherent such that most of the site is obviously in the same design language.
  8. If this isn’t Serious Business (or even if it is): a little whimsy doesn’t hurt.

C. Usability & Accessibility

  1. Interactable elements should be obvious, and their function telegraphed by their appearance. “Ghost buttons” in particular are a great evil.
  2. Headings and body text should be readable with a sane size and line width.
  3. Images need alt tags.
  4. Semantic HTML elements are preferred to <div> and <span>.
  5. Consider screen sizes from 350×350 to 4K at standard DPI.
  6. Contrast matters.
  7. Neither light mode nor dark mode receives preferential treatment.

Addendum: What is user experience?

UI design, UX, and software development are often treated as separate disciplines. While there is certainly value to specialization, delivering a good user experience requires a holistic vision for the system. User experience design should be a process, and it requires answering a lot of questions, like:

  1. Who is the user and what are they trying to achieve?
  2. What do they expect?
  3. Are we surprising them? In a good way or a bad way?
  4. What compromises must we make between different classes of users?
  5. Is this combination of copy, layout, and style actually clear, or have we just gotten used to it?
  6. Are we respecting our user’s (and operator’s, if separate) limited computing resources?
  7. What happens when something goes wrong? How do we–and the user–recover?
  8. Is it easy to do the right thing? Contrarily, have we made it too difficult to do what we consider the wrong thing?

  1. Discretion is required here, because change is often good. ↩︎

  2. This used to apply to software as well. In light of the sea change in cybersecurity, my tolerance for systems years out of date has evaporated. ↩︎