GETTING STARTED
Introduction & intentionsUI design principlesPILLARS OF VISUAL DESIGN
TypographyLayout & spacingColorsReflection & UI challengeDIVE DEEPER
Finishing touchesDeveloping tasteTools & resourcesGET INSPIRED
InspirationPodcast, newsletter & blogsPeople to followNEXT & MORE
What’s next1:1 mentoringSupport meLayout & spacing
📖 Reading list
UI cheat sheet: Spacing friendships
UI Design: The Essence of Spacing
- Significance of Spacing:
- Proper spacing transforms a design, making it organized and appealing.
- Benefits: Easier content consumption, hierarchy of information, design consistency, and enhanced aesthetics.
- Point Grids Introduction:
- Precise measurement tools like the 8pt and 4pt grids are preferred in digital design over traditional methods.
- 8pt grid: Uses multiples of 8 for spacing (e.g., 0, 8, 16).
- 4pt grid: Offers more flexibility with multiples of 4 (e.g., 0, 4, 8, 12).
- Spacing Friendships Concept:
- Think of design elements as friends. Closer related elements (or 'better friends') should be nearer to each other in design.
- Implementing this concept aids in achieving a balanced and organized layout.
- Three Cs of Spacing:
- Containers: Large elements like cards and modals need the largest spacing.
- Content: Focuses on typographic spacing, such as between headers and paragraphs.
- Components: Addresses spacing inside and between smaller elements like buttons.
- Concluding Remarks:
- Perfecting spacing is an evolving skill. Visualizing design elements as 'friends' can be a useful tool to understand their spatial relationships better.
Applying white space in UI design
Understanding the Role of White Space in UI Design
- Importance of Spacing:
- Effective spacing results in clear, user-friendly, and efficient interfaces.
- Proper spacing helps users easily differentiate between related and unrelated elements.
- Key Guidelines:
- Law of Proximity: Group related elements closer and maintain consistent spacing for similar elements.
- Baseline Spacing: Start with a generous amount of white space to enhance usability.
- Focused Attention: Use white space to emphasize specific elements, which can sometimes replace the need for larger or bolder text.
- Measurement Methods: Ensure consistent measurement methods (between "bounding boxes" or "cap heights") in both design and coding phases.
- Spacing System: Implement a consistent set of spacing values (like a color palette for spacing) to bring uniformity.
- Visible Differences: Ensure spacing values are visibly distinct to prevent ambiguity.
- Line-Height Adjustment: As text size increases, decrease the proportional line-height for a cohesive look.
- Techniques for Information-Dense UIs: Utilize borders, separators, text variations, and other design techniques to convey relationships in content-rich interfaces.
- Closing Thoughts:
- Creating a replica of admired UI designs helps in understanding and appreciating the nuances of spacing.
- An experienced designer recognizes the reasons why certain designs feel "right" and uses white space effectively to enhance user experience.
How to create stronger layouts with the 8pt Grid System
The Importance of the 8pt Grid in UI Design
- Definition of a Point (pt):
- A point is a measurement that depends on screen resolution. At '1x' resolution, 1pt equals 1px. With screens like Retina (2x) or Super Retina (3x), there's an increase in pixels per inch, making designs sharper.
- When designing for high-resolution screens like the iPhone X, a 24px icon would render as either 48px (2x) or 72px (3x) for the respective screens.
- Designing in 1x and exporting assets at different sizes (@2x, @3x) is advised to avoid confusion.
- Rationale Behind 8pts:
- Using an even number like 8 makes design scaling more consistent across varying screen sizes and pixel densities.
- The 8pt Grid principle involves using multiples of 8 (e.g., 8, 16, 24) for margins, padding, and sometimes element dimensions.
- Soft vs. Hard Grid Method:
- The 'Soft Grid' approach is preferred as it involves measuring 8pt increments between design elements, offering flexibility.
- The 'Hard Grid' confines elements to an 8pt grid pattern, which can be rigid and less practical for development.
- Icons & 8pt Grid:
- Icons typically sit within frames that are multiples of 8 (16x16, 24x24, 32x32).
- If they don't fit this criterion, it's advisable to encase them in a container with dimensions that are multiples of 8, ensuring consistency.
- Typography:
- Combining the 4pt Baseline Grid with the 8pt Grid achieves a harmonious vertical rhythm in designs.
- Align type to a 4pt Baseline Grid and use line-height values that are multiples of 4. This provides finer control over text spacing and better visual results.
In essence, the 8pt Grid system simplifies and standardizes UI design, ensuring consistency and scalability across different devices.
5 lesser-known spacing tips for product designers
Effective Spacing Tips in UI Design
- Use Multiples of 4:
- Opt for spacing increments of 4 for simplicity, reduced decision-making, and coherence in design.
- Adjust spacing in multiples (e.g., 4, 8, 12) as needed.
- Parent vs. Child Padding:
- Adhere to the gestalt principle: ensure related objects are closer.
- The padding of a parent should be equal to or greater than the spacing between its children.
- Optical vs. Geometric Alignment:
- While design tools offer precise geometric alignment, sometimes optical alignment (adjusted by the eye) looks better, especially with irregular shapes.
- Keylines for Icon Design:
- Use keylines to maintain consistent proportions across icons and tackle visual discrepancies.
- Keylines aid in ensuring different shapes (e.g., circles and squares) appear to be of similar size.
- Define Target Areas for Components:
- Target areas refer to responsive areas in UI components like icons or buttons.
- For mobile, a minimum of 48x48 is suggested for touch-friendly interfaces. On desktop, a slightly smaller size like 40x40 can work.
- Practice to Improve Spacing Sense:
- Enhance spacing skills by recreating screens from favorite apps. Screenshot, overlay in a tool like Figma, and design atop it. This practice sharpens spacing awareness and overall design aesthetics.
Principles of UI design: Alignment
The Significance of Alignment in UI Design: A Look at Medium
- Introduction to Alignment:
- Alignment in design brings order, organization, and improves readability.
- It's an invisible design principle that manipulates the placement of elements.
- Vertical Alignment:
- Refers to the placement of top, center, and bottom elements on the same horizontal plane.
- Medium's homepage uses vertical alignment for images and article titles across columns. This creates a visually coherent look despite different font sizes or image widths.
- Horizontal Alignment:
- Refers to the alignment of the left, center, and right edges of elements.
- Medium's "Based On Your Reading History" section horizontally aligns content to the outer left edge. Icons are consistently aligned on a vertical axis.
- Object Alignment:
- UI objects like images, graphics, or icons can vary in size, making alignment challenging.
- Objects should ideally be centrally aligned, while text or content should be aligned to the left.
- Medium follows this by centrally aligning user profile images and aligning text to the left in the "New from your Network" section.
- Central Alignment:
- Used to draw user focus to specific content.
- Medium employs this sparingly, mainly for image captions. They ensure captions don't disrupt reading flow by adjusting font size and contrast.
- Overall Impact:
- Proper alignment enhances the professionalism and clarity of a design.
- It provides structure, aids the reading experience, and can be easily implemented using modern layout tools.
In summary, alignment is a pivotal principle in UI design, as illustrated by Medium's effective use of it to enhance user experience and readability.
Optical effects in user interfaces
Optical Tricks in Design Based on Human Visual Perception
- Visual Weight:
- Shapes with equal dimensions can appear differently. For instance, a square often looks heavier than a circle of the same dimension.
- Icons in sets should be optically balanced, even if it means allowing non-square icons to slightly exceed the allocated area.
- For social media icons, designs may be adjusted for balance. E.g., Twitter icons may be enlarged to balance with more square-shaped icons like Facebook.
- Alignment:
- Sharp edges or points on shapes should often extend further to achieve optical balance when compared to rectangular or rounded shapes.
- There are different methods to align button names on button backgrounds, such as cap-height and x-height alignment. The choice may depend on the specific word or shape dynamics.
- Triangular icons or irregularly shaped icons might require adjustments in alignment to appear optically centered.
- Corner Rounding:
- Perfect geometric rounding might appear unnatural to the human eye due to the sudden shift from a straight line to a curve.
- Using shapes like superellipses can achieve smoother appearances, but they can be challenging to integrate into interfaces.
- Optically correct corner rounding might require manual adjustments for a more natural look.
- Bonus Insight:
- Sometimes, a non-perfect geometric square appears more square-like to the human eye due to our heightened sensitivity to height compared to width.
Recommended Readings: This article touches upon the essence of the Gestalt theory of visual perception and its implications in design. Further reading on the origins of Gestalt psychology and its foundational ideas is recommended, with notable works by Barry Smith, Steven Lehar, James J. Gibson, and biographies of the founders of Gestalt psychology.
Guidelines by Apple (layout) and Google - Layout, spacing
📺 Watch list
Visual hierarchy
Getting spacing right between UI Elements When Designing Websites
← Previous
Next →
On this page
- Layout & spacing
- 📖 Reading list
- UI cheat sheet: Spacing friendships
- Applying white space in UI design
- How to create stronger layouts with the 8pt Grid System
- 5 lesser-known spacing tips for product designers
- Principles of UI design: Alignment
- Optical effects in user interfaces
- Guidelines by Apple (layout) and Google - Layout, spacing
- 📺 Watch list
- Visual hierarchy
- Getting spacing right between UI Elements When Designing Websites