UI Design Minimalist Tutorial Part 1
How to design an elegant UI? Answer: Focus on the details, distinguish between primary and secondary elements, maintain a clean layout, ensure text readability, use rich colors, create natural hierarchies, keep images appropriate, add finishing touches, and ensure sustainability.
Focus on the Details
- Start with functionality, not layout.
- Begin with the details and work from grayscale; this forces you to clarify the hierarchy, layout, comparisons, and sizes before considering color.
- Avoid over-designing, as a product that users can actually use is far more important than design.
- Iterate in small steps; people often underestimate the difficulty of implementation.
- A product's personality is determined by elements such as font, color, border radius, and voice. For example, round shapes feel lively, while straight and thin shapes feel serious; blue is safe, gold feels expensive and complex, and pink is playful. Be careful not to borrow too much from your competitors :)
- Limit choices by pre-setting common parameters; this makes it look better and easier to implement.
Distinguish Between Primary and Secondary Elements
- Human attention is limited; having too many focal points is equivalent to having none.
- Size does not equal importance; consider using two to three font weights and two to three colors.
- You can use gray text on a white background to downplay text, but avoid using gray text on a colored background; instead, use colored text on a colored background.
- Mix weak and strong elements rather than relying solely on one or the other.
- Try to avoid labels (label: blah); sometimes you don't need a label and can go straight to the value; at other times, you can form a short sentence with the label and value; strengthen or weaken according to the importance of the label and value.
- The size of document tags does not equal the size of the UI; for instance, while you often use h1 for page titles, the actual importance of a page title may not warrant such prominence, so use regular size and font instead.
- Weight and color can both serve to strengthen or weaken elements; consider them together.
- If there are three parallel buttons for actions, distinguish between primary, secondary, and tertiary.
Maintain a Clean Layout
- Start with a loose layout, as reducing spacing is easier than increasing it.
- Select spacing from the design system.
- You don't need to occupy the entire screen; you can center elements or add columns.
- Some elements should not use proportional sizing but fixed widths, such as a left navigation bar or the width of an icon occupying a column; forms should not be resized unless absolutely necessary.
- Avoid scaling all parameters of a component uniformly; instead, design specifically for different sizes.
- Related items should be grouped together, while unrelated items should be spaced apart.
Ensure Text Readability
- Choose font sizes from the design system; avoid using em as it is a relative value based on the current font.
- Select a good font; starting with system fonts or popular fonts is always a safe choice; some fonts are designed for headings, with shorter horizontal spacing and shorter lowercase letters; others are designed for small sizes, with larger horizontal spacing and taller lowercase letters; learn from excellent designs and develop your intuition.
- Ensure that text paragraphs are not too wide.
- Align different text at the same level using baseline alignment (
align-items: baseline
) instead of centering. - Line height affects whether users can easily shift their gaze to the next line; use 2x line height for wide paragraphs and 1.5x for narrow paragraphs; use larger line heights for small text and smaller line heights for large text.
- Not every hyperlink needs color or underlining.
- Short paragraphs can be center-aligned, while long paragraphs should be left-aligned; numbers should be right-aligned.
- If the distribution of single-line text in a paragraph is awkward due to word length, consider using
hyphens: auto;
. - Adjust letter-spacing as noted in item 2 above; if increasing it for small-sized fonts, be careful to reduce letter-spacing.