My UX Design Principles
in pursuit of the joy of computing
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
- 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?’
- 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
- If it’s not needed now, consider loading it later. Prefer hiding the asynchronous nature, silently degrading until the resource is loaded.
- Consider that the user may be using surprisingly old hardware2
B. Aesthetic
- Eschew corporate “flat design” and reflexive minimalism.
- 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.
- Gradients are underrated.
- Not everything needs rounded corners.
- Depth adds interest and helps the user feel grounded, if it is coherent.
- Use relative colors, such that the page looks good with ANY selected primary color.
- If this isn’t Neocities: keep styles coherent such that most of the site is obviously in the same design language.
- If this isn’t Serious Business (or even if it is): a little whimsy doesn’t hurt.
C. Usability & Accessibility
- Interactable elements should be obvious, and their function telegraphed by their appearance. “Ghost buttons” in particular are a great evil.
- Headings and body text should be readable with a sane size and line width.
- Images need alt tags.
- Semantic HTML elements are preferred to
<div>and<span>. - Consider screen sizes from 350×350 to 4K at standard DPI.
- Contrast matters.
- 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:
- Who is the user and what are they trying to achieve?
- What do they expect?
- Are we surprising them? In a good way or a bad way?
- What compromises must we make between different classes of users?
- Is this combination of copy, layout, and style actually clear, or have we just gotten used to it?
- Are we respecting our user’s (and operator’s, if separate) limited computing resources?
- What happens when something goes wrong? How do we–and the user–recover?
- Is it easy to do the right thing? Contrarily, have we made it too difficult to do what we consider the wrong thing?