Mastering Mobile UI - Free Sample
Mastering Mobile UI - Free Sample
r
o
d
o
m
o
P
r
e
im
t
is
T
Mastering
Mobile UI
Marcin G.
@ui.martin
Table Of Contents
Introduction
Colors 12
Typography 34
Layouts, Grids 46
Figma Setup 56
Icons 58
Avatar 68
Tag 77
Button 87
Input 98
Search 100
Checkbox 114
Toggle 124
Tab 155
Tooltip 170
Snackbar 177
Card 211
Accordion 228
Form 250
Banner 261
Dialog 269
Popover 277
Onboarding 312
Design Insights
About me and
this eBook
Introduction - About me and this eBook
It’s more than just a guide - it’s a resource for anyone eager to
create better mobile products, whether you’re a UI Designer,
UX Designer, Product Designer, or even a developer with a
love for design.
k no ledge easier.
w
16:04
Search
Good Morning
Rise and shine! It's breakfast time
It’s like you’re missing that one crucial piece - the details. The
precise sizes, spacing, and balance that make a design go
from ‘meh’ to ‘wow.’
You know something’s off, but you’re not sure what. And that’s
exactly where this eBook comes in.
9:41
Good morning
Start your day with a delicious breakfast!
Search meal...
Category
All meals Pizza Meal Vegetarian
4.5 (36+)
Typography
Master the Foundations - Typography
Typography
Typography is one of the most important pillars of design - it
shapes how users read, interact with, and understand your
content. In mobile interfaces, where space is limited and
readability is key, getting typography right is essential.
Line Height
This is the space between lines of text, plays a crucial role in
ensuring a comfortable reading experience. The right value
allows users to easily follow the flow of longer paragraphs
while maintaining visual balance in the design.
Line Heigh t
in Mo ile esign
b D
32pt
iOS Guidelines
iOS Human Interface Guidelines recommend line heights
scaled to ensure optimal readability on mobile devices.
Typically, the line height is about 1.3x the font size, creating
balanced spacing that enhances clarity and usability on
small screens. For example:
Body Text (17pt): line height 22pt.
Su head (1 pt): line height 20pt.
b 5
My approach
In mobile design, I rely on a 4pt system, ensuring compatibility
with the 8pt grid commonly used in responsive layouts (i.e. I
use the Material Design system). For example:
Letter spacing
This is the spacing between characters, plays a crucial role in
mobile typography. On small screens, where readability is
often compromised, fine-tuning letter-spacing can prevent
text from appearing cramped or overly stretched.
Letter spacing
iOS Guidelines
Apple encourages adjusting letter-spacing dynamically
based on font size and content. Suggested adjustments:
For small text: Increase spacing slightly.
For large headings: Decrease spacing to maintain
cohesiveness.
My approach
In letter spacing, I prefer controlling value using percentages
in line with Figma's system. This approach allows for
consistency and scalability, ensuring that the spacing adapts
seamlessly to different font sizes. For example:
Font 24pt,
Subtle reduction for large
letter spacing -2% headings to maintain
compactness and balance.
Font 16pt,
Default spacing for most body
letter spacing 0% text.
Font 12pt,
Slight increase for smaller text
letter spacing 1% to enhance clarity.
Headline 32pt
Line height: 40pt Letter spacing: -2% Font weight: Medium
Headline 28pt
Line height: 36pt Letter spacing: -2% Font weight: Medium
Headline 24pt
Line height: 32pt Letter spacing: -2% Font weight: Medium
Headline 20pt
Line height: 28pt Letter spacing: -1% Font weight: Medium
Headline 18pt
Line height: 26pt Letter spacing: -1% Font weight: Medium
Headline 16pt
Line height: 24pt Letter spacing: -1% Font weight: Medium
Headline 14pt
Line height: 20pt Letter spacing: -1% Font weight: Medium
Headline 12pt
Line height: 16pt Letter spacing: 0% Font weight: Medium
Headline 10pt
Line height: 14pt Letter spacing: 0% Font weight: Medium
Body 16pt
Line height: 24pt Letter spacing: 0-0.5% Font weight: Regular
Body 14pt
Line height: 20pt Letter spacing: 0-0.5% Font weight: Regular
Body 12pt
Line height: 16pt Letter spacing: 1% Font weight: Regular
9:41
24pt Reports
Aug 20 - Aug 26 Filters 12pt
20pt Tracked hours
12pt Total hours Billable Amount
10:56:22 6:44:01 $148.32 18pt
16pt
Invite others and start tracking time
together as a team.
Invite 12pt
8h
Sticking to these ranges ensures optimal readability and
visual hierarchy, regardless of the app’s purpose or context.
6h
2h
0h
Mon Tue Wed Thu Fri Sat
08/20/24 08/21/24 08/22/24 08/23/24 08/24/24 08/25/24
Hours by
Mastering Mobile UI: The Ultimate Guide to Beautiful Components 44
Projects Clients
Master the Foundations
9:41 9:41
Timer Timer
List Pomodoro List Pomodoro
Anatomy of a Grid
A grid is the foundation of any well-structured layout,
providing alignment, consistency, and balance. It organizes
content into a predictable structure, ensuring a clean design.
Columns
Purpose: They define where content is placed, ensuring
alignment and balance.
Configurations: In mobile design, grids typically use 2, 3, 4,
or 6 columns, depending on layout complexity.
Width: Columns are flexible, adapting to the screen size.
Gutters
Gutters are the spaces between columns, preventing content
from feeling cramped and maintaining readability.
Purpose: They create separation between elements,
ensuring clarity and focus.
Size: Gutters typically range from 8px - 16px, depending on
the density of the layout.
8-16px
Margins
Margins are the spaces between the grid and the edges of
the screen. They act as a buffer zone to keep content safely
within the layout.
Purpose: Protects content from being cut off or feeling too
close to the edges.
Standard Margins: 16px is a common starting point,
providing enough padding for comfort and accessibility.
16px
Soft Grid
A soft grid takes a more flexible approach. While it loosely
follows the principles of spacing increments (e.g., 8pt), it
doesn’t require every element to snap rigidly to the grid.
Instead, it allows slight deviations to accommodate design
needs.
Elements can deviate from strict increments as long as they
maintain overall balance.
Spacing may be visually aligned rather than
mathematically precise.
Hard Grid
A hard grid is a structured, rule-based system where every
design element aligns strictly to the grid framework. This
approach is ideal for ensuring consistency and organization
across all aspects of the interface.
Dimensions and spacing follow exact increments (e.g., 8pt,
16pt, 24pt).
All elements snap precisely to the gridlines, creating a highly
uniform layout.
This system minimizes guesswork and simplifies alignment
across the interface.
16px 16px
9:41
Timer
List Pomodoro
Today 3:16:21
UX Design 0:30:45
6px 16px
9:41
Timer
List Pomodoro
Today 3:16:21
UX Design 0:30:45
Figma Setup
The Design Basics - Figma Setup
Once your design works well on these devices, it’s much easier
to scale up for larger phones or tablets.
16px
12px
4 col