Visual UI Design and Design Systems
BeginnerLesson 7 of 9 in UX Design Course
What you will learn
- Rank content and actions by importance so people see what matters first, scan a screen quickly and recognize what they can tap or click.
- Rank content with size, weight, color and positionUse the visual tools of hierarchy to make the most important element dominant and everything else clearly secondary, then check the result.
- Guide scanning with layout, grouping and white spaceArrange content so people can scan a screen quickly, using known reading patterns, grouping, alignment, white space and progressive disclosure.
- Make actions and their states clearShow which elements are interactive, which action matters most, and what state each control is in, with targets large enough to use.
- Rank content with size, weight, color and position
- Choose and set typefaces for screens, build a type scale and text styles, apply a color system by role, and check that text and controls have enough contrast.
- Choose and set typefaces for screensPick legible typefaces for an interface and set size, weight, line height, line length and alignment so text is comfortable to read.
- Build a type scale and text stylesCreate a limited set of text sizes, compare it with the Material and Apple scales, and save each combination as a named text style that supports text scaling.
- Apply a color system to an interfaceBuild an interface palette of neutrals, a primary color and semantic colors, assign colors by role, and adapt the system for dark themes.
- Check contrast and color use for readabilityCalculate and test contrast ratios against WCAG levels for text and interface parts, and make sure meaning never depends on color alone.
- Choose and set typefaces for screens
- Use a consistent spacing scale and column grids so screens look orderly, group content clearly and adapt to different widths.
- Use a spacing scale and the 8-point gridChoose spacing from a small scale based on a 4- or 8-unit base, apply it as padding and gaps, and use spacing to show grouping.
- Lay out screens on column gridsSet up columns, gutters and margins for phone, tablet and desktop widths, calculate column widths, and place content and safe areas on the grid.
- Use a spacing scale and the 8-point grid
- Create reusable components with variants and states, define styles and design tokens, and use, document and contribute to a design system.
- Create reusable components with variants and statesBuild components with a clear anatomy, variant properties, all their states and flexible layout, and use instances without breaking the link to the main component.
- Define styles and design tokensStore design decisions as named tokens in primitive, semantic and component tiers, use them for theming, and keep design files and code in sync.
- Use, document and contribute to a design systemExplain what a design system contains, use one to design faster, document a component, and follow governance when the system needs to change.
- Create reusable components with variants and states
- Apply the conventions of Material Design and Apple's Human Interface Guidelines, and adapt one product across Android, iOS and the web.
- Design Android and web interfaces with Material DesignUse Material Design 3's units, color roles, type scale, shapes and core components to design screens that feel at home on Android.
- Design iPhone and iPad interfaces with Apple's guidelinesUse the Human Interface Guidelines' principles, units, system fonts and colors, navigation patterns and control sizes to design screens that feel at home on Apple devices.
- Adapt one product across Android, iOS and the webDecide when to follow platform conventions and when to keep a shared design, and adapt navigation, controls and input methods for each platform.
- Design Android and web interfaces with Material Design
- Turn wireframes into polished mockups with real content, build interactive prototypes with realistic motion, and test and refine them with users.
- Turn wireframes into high-fidelity mockupsExplain fidelity, decide when high fidelity is worth it, and build polished, consistent mockups with real content and every screen state.
- Build an interactive prototypeConnect mockups into flows with triggers, actions and transitions, add purposeful motion and interactive components, and keep the prototype focused on what will be tested.
- Test and refine high-fidelity designsPlan usability tests for a high-fidelity prototype, interpret what the results say about the visual design, iterate, and prepare the work for presentation and development.
- Turn wireframes into high-fidelity mockups
UI Design study guide
1Build a clear visual hierarchy on a screen
A screen asks people to notice, understand and act in a useful order. Visual hierarchy supplies that order before anyone reads every word. Size, contrast and spacing create emphasis; headings and alignment make scanning easier; button styling and states show what can happen next. Work from the person’s task, then check both the whole screen and the smaller groups inside it, including how the controls behave with a keyboard.
1.1 Rank content with size, weight, color and position
A useful hierarchy answers three questions quickly: "What matters here?", "What supports it?" and "What can I do next?" Visual weight is the strength with which an element attracts attention. Arrange that weight around the user’s task.
Choose the order before choosing styles
Start by ranking information. On a product card, a shopper needs to identify the product, understand its price and find "Add to cart". A delivery note matters, but it should not compete equally with the purchase action. A practical starting point is three levels: primary for the main focus, secondary for supporting information and tertiary for details or metadata.
Size, font weight, color, contrast, position and white space all change visual weight. A larger or bolder item usually stands out. Saturated color and strong contrast pull attention. In a left-to-right layout, the top and leading edge are natural starting places. An item surrounded by empty space gains emphasis because it is separated from its neighbors.
These tools work through differences. Giving every element bold type and a bright background removes the differences that help people choose a starting point. Before making the main item larger, see whether supporting items can become quieter while remaining readable.
Work through a product card
Suppose the name, price, rating, delivery note and action all use 16 px regular black text. The content has no clear ranking.
- Give the product name 18 px semibold type so people can identify it.
- Set the price in 20 px bold type so the next key fact is easy to find.
- Set the rating and "Delivery in 2–3 days" in 14 px gray with sufficient text contrast.
- Put "Add to cart" in a filled accent-colored button across the bottom.
The card now supports a path from identification to price to action. Its quieter details remain available when the shopper needs them. This does not require every card to use those exact sizes; the useful decision is the relationship between the levels.
Check the strongest shapes
For a squint test, squint, step back or blur a screenshot until the words are unreadable. Look at the shapes that remain. A decorative image or promotion banner may dominate even though it contributes little to the immediate task. Reduce its saturation, size or background strength and check again.
A common conflict is a bright banner and primary button using the same strong accent. Choose the main focus for that section and reduce the banner’s weight, perhaps with a neutral or tinted background. Check in grayscale too: color needs support from weight, size, position or another visible cue.
Hierarchy also exists inside hierarchy. A page has a main focus, but each card, form section and dialog needs its own readable order. Reuse the same section-title style across screens so people can recognize a level without relearning it.
Key Takeaways
- Rank information by the user’s task before styling it.
- Build emphasis through differences in size, weight, contrast, position and space.
- Keep supporting text readable when reducing its visual weight.
- Use a squint test to find competing focal points.
- Apply a consistent hierarchy inside components as well as across pages.
1.2 Guide scanning with layout, grouping and white space
People often look for a useful heading or label before they commit to reading a page. Layout can make that search quick by revealing the content’s structure.
Give scanning useful stopping points
The F-shaped scanning pattern, described in Nielsen Norman Group’s eye-tracking work first published in 2006, occurs on text-heavy pages without strong formatting: people scan across the top, across a shorter line below, then down the left side. Descriptive headings and informative opening words give them better routes through the content.
Other patterns describe different tasks. In layer-cake scanning, people move through headings and subheadings. In spotted scanning, they jump to a number, keyword or link. The Z-pattern is a layout heuristic for sparse pages: top left, top right, bottom left, then bottom right toward a call to action. Use it as an arrangement to consider, not a prediction for every visitor.
Front-loading puts the useful words first. "Shipping address" tells a scanning reader more quickly than "Please enter the address where we should send your order". "Billing: update card" exposes both topic and action at the start.
Show relationships with space
Close items look related. Put a label close to its field and use a larger gap before the next group. Shared headings or containers can reinforce the relationship. Try spacing before adding a border or divider; a box around every small group makes a screen harder to scan.
White space has two scales. Micro white space includes line spacing, letter spacing and the room inside a button. Macro white space separates sections and provides page margins. An expert dashboard may use a dense layout because comparing many values is the task. Even there, deliberate spacing must show which values belong together.
Start-aligned text creates a stable edge the eye can follow. Long centered paragraphs move the start of each line and slow the search. Labels directly above fields are especially useful in a single-column form on a narrow screen. Indentation can show that one option belongs under another.
Reorganize a settings screen
A screen contains 14 switches in a single list. First group them under "Notifications", "Privacy" and "Account". Use 24 px above each heading and 8 px between the heading and its first row. The larger separation distinguishes groups; the smaller separation connects a heading to its contents. Place the rare "Delete account" action at the bottom of Account with destructive-action styling.
Progressive disclosure moves less-used or advanced choices behind an expandable section, menu or next screen. It reduces the amount a beginner must process at once. Keep frequent actions visible: hiding a daily action adds work every time it is needed.
For right-to-left interfaces, the leading edge is the right edge. Navigation, text starts and back controls adapt to that direction. Naming positions "leading" and "trailing" helps describe the relationship without locking it to left and right.
Key Takeaways
- Front-load headings and labels with words people are searching for.
- Use smaller gaps within groups and larger gaps between groups.
- Align text and controls to a clear leading edge.
- Keep frequent actions visible when using progressive disclosure.
- Treat scanning patterns as guidance tied to content and task.
- Use leading and trailing positions for layouts that support both reading directions.
1.3 Make actions and their states clear
A person must be able to recognize an action before using it. The shape, label and state of a control work together to show what it does and whether it has responded.
Make actions recognizable
An affordance is an action an element allows, such as typing or dragging. A signifier is the cue that reveals it: a filled button, an underlined link or a drag handle. Plain text that secretly responds to a tap has a weak signifier.
Give a screen or section one primary action. Filled buttons carry strong emphasis; outlined or tinted buttons support alternatives; text buttons carry less emphasis. Material’s common button types are filled, filled tonal, outlined, text and elevated. Choose the emphasis to match the action’s role.
Use links for navigation and buttons for actions such as saving or deleting. Appearance alone does not decide which is which: a text button has no filled container, and a navigation link can look like a button. Make the label and behavior agree. In body text, underlining helps people recognize links without relying only on color.
Name the result with a verb: "Save changes" or "Delete file". "Yes" and "OK" require the person to reread the surrounding message. Protect irreversible deletion with confirmation. For a frequent reversible action, an "Undo" message often avoids repeated interruption.
Design more than the resting state
A control may be enabled, hovered, focused, pressed, selected, disabled, loading or in error. Material state layers use a translucent overlay to show interaction states. Loading feedback tells people that a press worked and can prevent duplicate submissions.
Focus identifies the element receiving keyboard input. Selection identifies a chosen option. Moving focus does not by itself mean that the person has chosen or activated an item. Give focus its own visible treatment, such as a 2 px contrasting outline. WCAG requires visible keyboard focus at level AA; removing the browser outline requires a usable replacement.
Disabled controls are exempt from contrast rules, but their pale appearance does not explain what is missing. Keeping "Continue" enabled and showing a useful field message after activation can give clearer help. A secondary action still needs to look enabled.
Make the target easy to hit
| Context | Target guidance |
|---|---|
| Material touch | At least dp, with at least 8 dp between targets |
| iPhone and iPad | Default control size pt; minimum pt |
| Web, WCAG 2.2 AA | At least CSS px, with defined exceptions including inline links and sufficient spacing |
The visible icon can be smaller than its target. A 24 dp icon with 12 dp padding on each side occupies a 48 dp target.
At the bottom of a sign-up form, make "Create account" the filled primary button and "Sign in instead" a quieter text action. After activation, show "Creating account…" with a progress indicator and ignore repeated taps during submission. The label, emphasis and loading behavior now tell one coherent story.
Key Takeaways
- Use signifiers to make possible actions visible.
- Match button emphasis and labels to the action’s purpose.
- Distinguish keyboard focus from selection.
- Design loading, error and disabled states as well as enabled states.
- Size the hit area separately from the visible icon when needed.
- Protect destructive actions with confirmation or a suitable Undo path.
2Use typography and color to make interfaces readable
Readable interfaces depend on the relationship between text, color and the surface behind them. A typeface must make characters clear, a type scale must make levels predictable, and color roles must keep meaning consistent across screens. Contrast checks turn visual guesses into measurable decisions. Work through these choices as a system, then test the actual combinations in light and dark themes and with larger text.
2.1 Choose and set typefaces for screens
Good interface typography makes letters easy to distinguish and longer passages comfortable to read. Legibility concerns individual characters; readability concerns the experience of reading whole blocks.
Choose a useful family
Look for open letter shapes, a generous x-height and clear differences between I, l and 1 and between O and 0. For numeric tables, tabular figures give each digit equal width so values align. Sans-serif faces are common in interfaces; serif faces can work well for longer reading at comfortable sizes.
One family is often enough. If a product uses two, give them clear jobs, such as headings and body text. Build further hierarchy with size and weight. Regular is commonly 400, medium 500, semibold 600 and bold 700. Thin weights are difficult at small sizes.
System fonts need no download and fit their platform: San Francisco, including SF Pro, on Apple devices; Roboto as Material’s default; New York as Apple’s serif companion. A web interface can use a system font stack or a web font. A variable font stores a continuous range of weights in one file.
Set the text block
Typical body sizes are 17 pt on iOS, 16 sp for Material body large, and 16 CSS px on the web. Apple lists 11 pt as a minimum on iPhone and iPad. Captions often use 12–14 platform units because they carry secondary information.
Line height is the distance from one text line to the next. Body text often works at 1.4–1.6 times its size. For 16 px text at 24 px line height:
Large headings often use tighter ratios around 1.1–1.3. Keep body lines around 45–75 characters, including spaces; limit the text column on wide screens so a reader can find the next line.
Start-align paragraphs. Centering suits short text such as an empty-state heading. Justification can create distracting gaps, and long all-capital passages slow reading. Reserve underlining for links on the web; short capitalized labels can use a little extra letter spacing.
Let text grow
CSS px is a reference pixel. A web rem is relative to the root font size; it follows the user’s browser preference when that root remains at the default or a percentage of it. A fixed px root can override the preference. Android uses dp for layout and sp for text; Apple uses pt with scalable text styles.
WCAG asks for text resizing to 200% and for content to remain usable with specified text-spacing changes, including line height at 1.5 times the font size and paragraph spacing at 2 times. Fixed-height boxes often clip enlarged text. Let rows grow and text wrap.
For an article screen, use a 17 pt iOS body or 16 sp Android body, a 24-unit line height, a 28-unit semibold headline with 34-unit line height, and a 13-unit caption with sufficient contrast. On a tablet, constrain the body to about 65 characters per line and use the remaining width as margins.
Key Takeaways
- Choose character shapes and weights for legibility.
- Use size, line height, line length and alignment together.
- Keep platform units explicit: CSS px or rem, dp and sp, or pt.
- Allow wrapping and growing rows when users enlarge text.
- Use tabular figures when numeric columns need alignment.
2.2 Build a type scale and text styles
A type scale limits the sizes a product uses. Named text styles then turn those sizes into reusable choices with a font, weight, line height and letter spacing.
Build a scale
A modular scale multiplies a base by a fixed ratio at each step. With a 16 px base and a ratio of 1.25:
The next sizes are 31.25 px and 39.06 px, commonly rounded to 31 px and 39 px. A step below the base divides: px, rounded to 13 px. A gentler 1.2 ratio gives 16, 19.2, 23.04 and 27.65 px. Small ratios suit dense interfaces; larger ratios create more dramatic differences on sparse pages.
A scale can also be hand-tuned. The point is a deliberate set of relationships that repeats across the product.
Read platform scales by role
Material 3 has 15 baseline styles: display, headline, title, body and label, each in large, medium and small. Examples in sp, written size/line height, are display large 57/64, headline large 32/40, title large 22/28, body large 16/24, body medium 14/20 and label large 14/20 in medium weight. Label small is 11/16.
Apple’s default styles use points. Large Title is 34/41; Title 1 is 28/34; Title 2 is 22/28; Title 3 is 20/25. Headline is 17/22 semibold and Body is 17/22 regular. Callout is 16/21, Subhead 15/20, Footnote 13/18, Caption 1 12/16 and Caption 2 11/13. Dynamic Type scales the styles with the system text-size setting.
Save the complete decision
Name a style by its role, such as "heading/large" or "label/button". "Roboto 16 bold" becomes misleading when the font or size changes. Most products use about 6–10 everyday styles even if their library offers more.
For a web dashboard, a 16 px base with a 1.25 ratio can become this practical set:
| Style | Size/line height in CSS px |
|---|---|
| Small text | 13/20 |
| Body | 16/24 |
| Heading 3 | 20/28 |
| Heading 2 | 25/32 |
| Heading 1 | 31/40 |
| Display | 39/48 |
The line-height ratios tighten as type grows: 1.5 for body, 1.4 for Heading 3, about 1.28 for Heading 2, 1.29 for Heading 1 and 1.23 for Display. All line heights are multiples of 4, helping the text fit the spacing rhythm.
Test the styles at large text settings. Apple recommends enlargement to at least 200%. On Android, use sp; on the web, rem with a preference-respecting root. Side-by-side labels may need to stack, and rows must grow. A reusable style cannot prevent clipping caused by a rigid container.
Key Takeaways
- A type scale replaces arbitrary screen-by-screen sizes.
- Multiply upward and divide downward on a modular scale.
- Save font, size, weight, line height and spacing as a role-named style.
- Use platform text styles to support user text settings.
- Test the layout around enlarged text as well as the styles themselves.
2.3 Apply a color system to an interface
Color is easier to manage when each choice has a job. A palette supplies possible colors; color roles say where and why to use them.
Separate the jobs of color
Neutrals cover backgrounds, text, borders and most surfaces. A primary color marks key actions and important highlights. A secondary accent is optional. Semantic colors carry stable status meanings: red for errors, amber or orange for warnings, green for success and often blue for information.
Use a small, documented palette. Adding a slightly different blue on every screen makes updates difficult and weakens the product’s visual language. Giving ordinary promotions the error treatment blurs the meaning of an actual error. A red brand needs a deliberate action treatment that stays distinct from error feedback.
The 60-30-10 rule is a rough balance guide: about 60% dominant color, often a neutral background; 30% supporting surfaces and content; 10% accent. It helps judge emphasis, but it is not a required area calculation for every screen.
Pair each role with its content color
Common roles include primary, on-primary, surface, on-surface, outline, error and on-error. The on role is the text or icon color placed on the matching background. A button uses primary for its fill and on-primary for its label. Contrast belongs to that pair, not to either swatch by itself.
Material also offers primary container and on-primary container, secondary and tertiary roles, and several surface levels. Its tonal palettes range from tone 0, black, to tone 100, white. In the baseline scheme, light primary uses tone 40 with on-primary 100; dark primary uses tone 80 with on-primary 20. Dynamic color can generate a scheme from a brand source color or, on supported Android versions starting with Android 12, the person’s wallpaper.
Build and test a small scheme
For a budgeting interface, choose primary #0B57D0 with white on-primary. Add error #B3261E and success #2E7D32, each with white content. Their white-text ratios are 6.39:1, 6.54:1 and 5.13:1, so these pairs pass AA for normal text. Use white surface and #1F1F1F on-surface, a pair reaching 16.48:1. Define a warning role separately and test its content pair too.
Neutrals can have a slight tint toward the brand hue. A very dark gray can remain highly readable while feeling softer than pure black.
Design the dark theme separately
A dark theme needs its own pairings. Dark gray surfaces leave room for lighter raised surfaces; strongly saturated accents may feel harsh against them, so lighter, less saturated accents often work better. #E3E3E3 text on #121212 gives 14.60:1. Some products also provide a pure-black OLED option.
Do not invert every color mechanically. Reassign the roles, then inspect the real screens: a light button may need dark on-primary text, and an error message needs a new contrast check on its dark surface.
Key Takeaways
- Assign colors to stable action, surface and status roles.
- An on-color belongs to its matching background role.
- Use a limited palette and keep semantic meanings consistent.
- Treat 60-30-10 as a balance guide.
- Create and check dark-theme pairs separately.
- Dynamic color changes role values while preserving their jobs.
2.4 Check contrast and color use for readability
A color can look readable on a bright monitor and still fail a contrast requirement. Check the actual foreground and background pair, including the state and theme in which it appears.
Measure contrast
The WCAG contrast ratio compares relative luminance, the brightness calculated from linearized color channels:
Here, L1 is the lighter color’s luminance and L2 is the darker color’s. Ratios range from 1:1 to 21:1. Luminance weights green by 0.7152, red by 0.2126 and blue by 0.0722, so equal channel values do not contribute equally to brightness. Use a contrast checker or design-tool plugin to calculate pairs.
| Text category | WCAG AA | WCAG AAA |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text | 3:1 | 4.5:1 |
Large means at least 18 pt, about 24 CSS px, or 14 pt bold, about 18.5 CSS px. A ratio of 4.48:1 fails 4.5:1; rounding cannot turn failure into a pass.
Read a check correctly
On white, #767676 reaches 4.54:1 and passes normal-text AA. #777777 reaches 4.48:1 and fails. #9E9E9E reaches 2.68:1, below even the large-text threshold. #595959 reaches 7.00:1 and meets normal-text AAA.
White text on #4285F4 gives 3.56:1: it works for large text at AA, but not a normal 14–16 CSS px button label. Darker #0B57D0 raises that pair to 6.39:1.
Non-text contrast at AA requires 3:1 for visual parts needed to identify components, states and meaningful graphics. A field whose only boundary is #C4C4C4 on white has 1.74:1 and fails. #949494 reaches 3.03:1. Check important icons, checkbox outlines and custom focus treatments against their adjacent colors too.
Keep meaning available without color
Add a visible message and icon to an error, underline body links, label chart lines or vary their patterns, and use text to identify required fields. Red-green differences are particularly difficult for many people with color vision deficiency. The often-cited rates of about 1 in 12 men and 1 in 200 women concern people of Northern European descent, not every population.
Inactive controls, pure decoration, logos and incidental text within a picture containing other significant content have contrast exemptions. Informative placeholder text does not: it needs sufficient contrast and must not replace a persistent label.
Text over a photo or gradient needs checking at the worst background spot. A scrim or solid backing can stabilize the pair. Check hover, pressed, selected and error states in both themes. Grayscale and color-vision simulations add useful checks; neither replaces contrast measurement. Passing the ratio also leaves size and weight to judge. APCA models additional perceptual factors, while WCAG 2.2 uses the ratio above.
Key Takeaways
- Apply 4.5:1 to normal text and 3:1 to large text at AA.
- Do not round a failing ratio upward.
- Check meaningful interface boundaries and graphics at 3:1.
- Use another cue alongside color.
- Check the worst background area and every relevant state and theme.
- A passing ratio still needs readable size and weight.
3Space and align layouts with a system
Spacing makes relationships visible, while a column grid gives screens a shared structure. These systems solve different problems: small gaps organize the parts inside a control, and columns align larger cards and panels across a page. Learn to name each kind of space, calculate widths without losing gutters, and leave room for system bars and cutouts. The result is a layout that can be repeated and adjusted without guessing at every measurement.
3.1 Use a spacing scale and the 8-point grid
A spacing system turns hundreds of small placement choices into a repeatable set of values. It also tells people which pieces belong together.
Start with a small scale
An 8-point grid uses spacing and sizes such as 8, 16, 24, 32, 40, 48 and 64 platform units, with 4 as a useful half step. Material aligns spacing and components to multiples of 4 dp; many values also fit an 8-unit rhythm. Name the values so a team can use the same choices in design and code.
One possible scale is space-, space-, space-, space-, space-, space-, space- and space-. Larger steps become wider apart because a tiny change in a large gap is hard to notice. Multiples of 8 also produce whole physical pixels at common density factors: 8 units become 12 px at 1.5×, 16 px at 2× and 24 px at 3×.
Name the space you are changing
| Space | Location | Example |
|---|---|---|
| Padding | Inside a container, from edge to content | 16 px inside a card |
| Margin | Outside an element | Space around a page section |
| Gap | Between neighboring items in a row or stack | 8 px between title and body |
Auto layout uses padding, gaps, direction and sizing rules to maintain these relationships as content changes. The equivalent concepts also appear in CSS flexbox and grid.
Use smaller spacing inside a related group than between separate groups. A card might have 16 px padding, 8 px between title and body, and 24 px before the next card. Giving every separation the same value erases the grouping. Arbitrary 13 px, 17 px and 22 px gaps are hard to repeat and maintain.
Work out a list row
A two-line row uses 12 px top and bottom padding. Its title is 16 px text with 24 px line height; the supporting text is 14 px with 20 px line height. With no extra gap between the text boxes:
The text block is 44 px tall. A 40 px avatar fits beside it, centered vertically, with a 16 px gap before the text. Left and right padding are 16 px. The row height is a multiple of 4 because .
Judge visible space as well as boxes
Line height adds space inside a text box. For a 16 px font box within a 24 px line box, the extra 8 px is often modeled as 4 px above and below. Actual visible letter shapes depend on the font. That is why a numeric gap next to text may look larger than the same gap between two solid shapes.
A baseline grid aligns the lines that letters sit on. Many interface teams use a simpler rhythm: align boxes to the spacing scale and use line heights divisible by 4. Keep any optical adjustment consistent. Preserve target spacing too: Material asks for at least 8 dp between touch targets, and Apple suggests about 12 pt padding around bordered or filled controls.
Key Takeaways
- Use a small named scale for recurring spacing decisions.
- Distinguish padding, margin and gap.
- Make gaps within groups smaller than gaps between groups.
- Include text line heights when calculating component height.
- Check apparent gaps because visible letters do not fill their line boxes.
3.2 Lay out screens on column grids
A column grid divides the available width into places for content and spaces that separate it. Its three parts are columns, gutters between columns and margins at the outer edges.
Calculate the grid from the outside in
First subtract both outer margins from the frame width. Then remove the gutters before dividing the remaining width among the columns. With n columns, there are n − 1 internal gutters:
A 1440 px frame with two 120 px margins leaves 1200 px of content. For 12 columns and 24 px gutters, subtract px. Divide the remaining 936 px by 12 to get 78 px per column.
A card spanning 4 columns also spans the 3 gutters inside that span:
Three cards fill the content area because px. The two remaining gutters separate the cards. Counting a gutter after the last column is a common width error.
Choose a useful column count
Four columns are common on phones, eight on tablets and twelve on desktop. Twelve supports halves, thirds, quarters and sixths. On a 360 dp phone with 16 dp margins, the content width is 328 dp. Four columns with 16 dp gutters give dp each. Twelve columns with those gutters would give about 12.7 dp each, too narrow to be useful for this layout.
Android width classes describe the space available to the app:
| Class | Available width |
|---|---|
| Compact | Under 600 dp |
| Medium | 600 dp to under 840 dp |
| Expanded | 840 dp to under 1200 dp |
| Large | 1200 dp to under 1600 dp |
| Extra-large | 1600 dp or more |
A device can change class when its window changes. Choose a layout for available space instead of assuming every tablet has the same width.
Let the grid adapt
A fluid grid stretches its columns as the window grows. A fixed grid keeps a set content width, with expanding outer margins. Many sites combine them: fluid until a maximum content width, then fixed and centered.
Content normally starts and ends on column edges, spanning whole columns and internal gutters. Full-bleed backgrounds or images can reach beyond the margins. Inside a component, small parts follow the spacing scale. Almost-aligned edges that differ by 2–4 px look accidental; save consistent grid styles across screens.
Keep text and controls clear of system bars, camera cutouts, the Dynamic Island and home indicator using safe areas or system insets. Backgrounds can extend behind them. As width increases, a bottom navigation bar can become a rail or sidebar, leaving more room for content.
Key Takeaways
- Subtract margins and all internal gutters before dividing into columns.
- A span includes its columns and the gutters between them.
- Choose grid structure from available window space.
- Use fluid and fixed widths deliberately.
- Keep interactive content clear of platform insets and cutouts.
- Allow full-bleed backgrounds without losing purposeful alignment.
4Build interfaces from components and a design system
A consistent product needs more than matching colors. Components reuse structure and behavior; tokens reuse design decisions; a design system explains when to use them and how they change. These layers let a small fix reach many screens. They also need clear ownership and realistic edge cases, so a library remains useful as the product grows. Build one element carefully, connect it to shared values, and document how another person should use it.
4.1 Create reusable components with variants and states
A component is an interface element defined once and reused. Each linked use is an instance. Changing the main component updates its instances, while permitted properties let each instance carry its own label or icon.
Describe its parts
Component anatomy names the pieces people design and build. A button has a container, label and optional leading icon. A field has a persistent label, input area, optional icons, helper text and error feedback. Shared part names help designers and developers discuss the same thing.
Atomic design organizes interfaces from small to large: atoms such as labels and buttons; molecules such as a search form; organisms such as a header containing navigation and search; templates defining page structure; and pages using that structure with real content. These levels help you reason about composition without prescribing a folder structure.
Choose variants and properties
A variant represents a meaningful version, such as primary versus secondary, or enabled versus focused. Keep size, type and state as distinct dimensions. Three types, three sizes and five states create:
Doubling that set just to show and hide an icon would create 90. A boolean property can handle icon visibility. Text properties allow labels to change, and instance-swap properties let designers choose the icon. Add variants for real differences in design or behavior; use properties for allowed content changes.
Make content drive the layout
Auto layout specifies padding, gap and direction. Sizing rules decide whether something hugs its contents, fills its parent or keeps a fixed dimension. A button with 16 px horizontal padding can grow from "Save" to "Save and continue" without manual stretching.
Try long labels, translations, missing images, empty lists and loading states. Decide whether text wraps or truncates and whether the important information remains available. A reusable component should handle its realistic range of content before it is spread across many screens.
Build a field through its states
Keep the label above the input. Provide helper text below and an optional trailing icon. Add enabled, focused, filled, error and disabled states. A focused field can have a 2 px primary-colored outline. An error field uses an error-colored boundary, an icon and "Enter an email address like name@example.com". The text explains recovery, and the icon and message keep the meaning available without color.
Name the component consistently, for example "Button" with type = primary and size = large. Match code names where possible. If an instance needs a missing option, use or extend its properties, propose a variant, or ask the system owners. Detaching it removes the update link, so future shared fixes stop reaching that instance.
Key Takeaways
- Use linked instances for reusable interface elements.
- Name component anatomy before designing variants.
- Separate meaningful variants from editable content properties.
- Let auto layout adapt components to realistic content.
- Keep instances linked so shared fixes continue to reach them.
- Use text and icons alongside color for error feedback.
4.2 Define styles and design tokens
A design token stores a named design decision as data. Color, spacing, type size, corner radius, shadow and motion duration can all be shared this way. Tokens connect what the design file shows with what code implements.
Trace a decision through its tiers
A primitive token stores a raw value: blue-600 = #0B57D0. A semantic token gives that value a purpose: color-action-primary = blue-600. A component token applies the purpose to a particular part: button-primary-background = color-action-primary.
| Tier | Question it answers | Example |
|---|---|---|
| Primitive | What values exist? | blue-600 |
| Semantic | What is this value for? | color-action-primary |
| Component | Where does this component use it? | button-primary-background |
A brand change can update a primitive or redirect the semantic alias. Components then receive the change through their references. Name tokens by purpose using a consistent order, such as color-background-danger-hover or space-inset-medium. A name like red-text becomes misleading if the color changes.
Switch themes by changing mappings
In light mode, color-surface can refer to white; in dark mode, to gray-900. A component that reads the semantic surface token follows the mapping. A hard-coded white surface stays white until someone changes it separately.
For an action button, the light-mode primary role can refer to color.blue.600, while the dark-mode role refers to color.blue.200. The component’s background token still points to the same action role. Its content color must also be mapped and checked: white on #0B57D0 gives 6.39:1, but a lighter dark-mode button commonly needs dark text.
Use styles and variables for different jobs
In Figma, a text style bundles properties including font family, size, weight and line height. Color, effect and layout grid styles also support reuse. Variables hold individual color, number, string or boolean values. Collections organize variables, modes provide alternatives such as light and dark, and aliases connect one variable to another.
The Design Tokens Community Group published its first stable Design Tokens Format Module, version 2025.10, on October 28, 2025. Its JSON format stores token types and values and allows aliases such as {color.blue.600}. Tools such as Style Dictionary can transform token data into CSS variables and Android or iOS outputs.
Start with recurring decisions: color, type, spacing, radius, elevation, motion and breakpoints. Hundreds of raw values without meaningful roles are difficult to use. Keep design and code connected to an agreed source and export process so matching names continue to mean matching decisions.
Key Takeaways
- A token stores a named design decision as data.
- Primitive, semantic and component tiers connect values to purpose and use.
- Theming remaps semantic roles.
- Styles bundle properties; variables store individual values and aliases.
- Keep design and code synchronized through the agreed token source.
4.3 Use, document and contribute to a design system
A design system combines the standards, resources and working practices a team uses to build interfaces. A component library is one part of that system.
Know what the system contains
Foundations define principles and tokens for type, color, spacing, icons and motion. Component libraries provide reusable elements in design files and code. Patterns combine them for recurring tasks such as search, forms and empty states. Documentation explains use, content and accessibility. Governance assigns ownership and controls change.
A style guide mainly describes visual rules. A pattern library collects recurring solutions. A complete system connects these resources to maintained components and a process for improving them.
Reusable controls save work and carry useful accessibility features. Each finished screen still needs checks of its content, contrast, focus order and component combinations. The system also has a maintenance cost, so a team needs a reason to build custom resources and people responsible for them.
Choose and learn a system
A small team can adopt an existing system or adapt it through fonts, color roles and shape tokens. A custom system makes sense when product needs and long-term resources support it. Keep adaptations organized so later upstream updates remain practical.
Public systems include Material, Apple’s HIG and UI kits, IBM Carbon, Shopify Polaris, Microsoft Fluent, Atlassian, Salesforce Lightning and GOV.UK. Compare their treatment of a single component to see how visual examples, behavior and usage rules support one another.
A sticker sheet places components, variants and states together for quick use and visual review. It can expose two button heights that should have matched, but it does not supply all the guidance a team needs.
Document decisions others must make
For a component, explain its purpose and when another component fits better. Name its anatomy, variants, states and behavior. Show how it responds to different widths and content. Include label guidance, keyboard use, focus order, the name a screen reader announces, contrast, examples of good and poor use, and links to code and tokens.
Contribute a missing pattern
A team needs a promotional banner. First search the library: a card exists, and an alert exists. An alert communicates a system message, so using it for promotions would weaken its meaning. Propose a banner built from existing surface, text, spacing and radius tokens. Document "one per screen" and direct error messages to the alert component. Review, build, document and release the addition.
Ownership may be solitary, with one product team; centralized, with a dedicated system team; or federated, shared across teams. A contribution path makes exceptions visible and reusable. Silent one-off components gradually break consistency.
Semantic versioning uses major.minor.patch. A major release can break existing use, a minor adds compatible features, and a patch fixes bugs. A compatible new banner could appear in 2.3.0 with a changelog explaining its use.
Key Takeaways
- A design system connects foundations, components, patterns, documentation and governance.
- Reusable accessibility features still need checking in each screen.
- Adopt, adapt or build according to product needs and maintenance capacity.
- Search existing patterns before proposing an addition.
- Document purpose, behavior, content and accessibility as well as appearance.
- Use owners, review and versioned releases to manage change.
- Feed justified exceptions back into the shared system.
5Design within Material Design and Apple's guidelines
People arrive with habits learned in other apps. Material Design and Apple’s Human Interface Guidelines help your product fit those habits while preserving its own identity. Their units, type styles, navigation and controls differ, so copying a screen unchanged can carry the wrong expectations onto another platform. Compare the conventions, then decide which foundations stay shared and which interactions need a native treatment.
5.1 Design Android and web interfaces with Material Design
Material Design supplies guidance, components, tokens, design kits and code libraries for interfaces on Android, the web and other platforms. Material 3 arrived in 2021 with Material You and dynamic color. Material 3 Expressive extended its shape, color, type and motion options in 2025.
Work in logical units
Layout uses dp, density-independent pixels, and text uses sp, scale-independent pixels. At 160 dpi, 1 dp corresponds to 1 physical pixel. At other densities:
At 320 dpi, a 48 dp target occupies 96 physical pixels. Changing density does not make the designer’s target 96 dp. Text in sp also responds to the user’s font-size setting. Material asks for touch targets of at least dp and at least 8 dp between them.
Apply the foundations through roles
Color roles include primary, secondary, tertiary, surface, surface containers, outline and error, with matching on-colors. Dynamic color fills those jobs from a source such as wallpaper or a brand color. Keep using the roles as their values change between light, dark and dynamic schemes.
Roboto is the default typeface. The baseline scale provides 15 styles across display, headline, title, body and label. A product can change the font while preserving the jobs of those styles.
The baseline corner scale includes none 0 dp, extra small 4 dp, small 8 dp, medium 12 dp, large 16 dp, extra large 28 dp and full rounding. Newer libraries add further options. Choose named shapes consistently. Surface-container tones help show elevation, with restrained shadows for floating elements.
Pick components by their job
A top app bar carries the title, navigation and key actions. A bottom navigation bar commonly shows 3–5 top-level destinations on compact screens. A rail moves those destinations to the side when there is more width; a drawer can accommodate more. A floating action button, or FAB, holds the screen’s single key action, such as "Compose".
Cards group content; dialogs ask for focused decisions; snackbars show brief feedback with at most one action; chips represent compact choices or information. Filled and outlined fields and five common button types provide choices within the system. Hover, focus and pressed state layers communicate interaction.
Adapt an email screen
Use a top search area, message rows with 40 dp avatars and 16 dp margins, a "Compose" FAB and a bottom bar for "Mail", "Chat" and "Meetings". At 600 dp available width, the app enters the medium class and can use a navigation rail with messages beside the list.
Android’s system back gesture or button moves through history across apps. An app-bar up arrow can move within the app hierarchy. Preserve system back behavior; a copied iOS-style text back control is not its replacement. Jetpack Compose and Flutter Material libraries provide implementations of many of these patterns.
Key Takeaways
- Use dp for layout and sp for scalable text.
- Keep density conversion separate from logical design size.
- Apply Material color, type and shape roles consistently.
- Choose navigation and action components according to their jobs.
- Support Android system back behavior.
5.2 Design iPhone and iPad interfaces with Apple's guidelines
Apple’s Human Interface Guidelines, or HIG, describe patterns for iOS, iPadOS, macOS, tvOS, visionOS and watchOS. Apple Design Resources provide UI kits, and SF Symbols provides icons that match system typography.
Understand the visual layers
Since 2025, Liquid Glass has given controls and navigation a translucent layer above content. Hierarchy separates that control layer from the content beneath it. Harmony connects interface shapes with the hardware’s rounded forms, and consistency links the experience across Apple platforms. Keep content readable beneath translucent controls and use system patterns to support appearance settings.
Use points and scalable styles
Apple design dimensions use points, written pt. At 1×, a point corresponds to one physical pixel; at 2×, to two pixels along each dimension; at 3×, to three. A 44 pt control is therefore 132 physical pixels tall at 3×, while the design dimension remains 44 pt.
SF Pro is the system sans-serif face on iPhone and iPad, and New York is the serif option. Body is 17 pt at the default setting and Large Title is 34 pt. Dynamic Type adjusts named text styles with the user’s size preference. Apple lists 17 pt as the default and 11 pt as the minimum text size on iPhone and iPad, and recommends supporting enlargement to at least 200%.
Semantic colors such as label, secondary label, system background and secondary system background adapt to light and dark appearance and Increase Contrast. A consistent tint marks interactive elements. Check text and controls in both appearances using WCAG AA contrast values as guidance.
Choose familiar navigation
A bottom tab bar switches among top-level sections. A navigation bar shows the screen title and the leading back control for a pushed detail screen. An edge swipe also supports going back. Wider iPad and Mac windows can replace top-level tabs with a sidebar.
Sheets support focused tasks. Because people may swipe down to dismiss one, also give a visible way to close or confirm. Reserve alerts for critical information. Place the main action in a navigation bar or toolbar when that fits the platform’s pattern.
Fit controls around the device
Apple lists pt as the default control size and pt as the minimum on iPhone and iPad. Suggested padding is about 12 pt around controls with a visible border or background and about 24 pt around controls without one. SF Symbols scales and matches weights with system text.
Safe areas protect text and controls from system bars, the camera area and home indicator; backgrounds can extend to the edges. Size classes describe compact or regular available width and height, so design for space instead of one device model.
For a recipe app, use tabs for "Discover", "Search", "Saved" and "Profile", each with an icon and label. A recipe opens as a detail screen with a navigation-bar back control. "Add to shopping list" opens a sheet with "Cancel" and "Add". Use Body for the recipe text so Dynamic Type can enlarge it.
Key Takeaways
- Use pt for design dimensions and keep physical pixel scale separate.
- Apply named text styles with Dynamic Type.
- Use semantic colors for appearance and contrast settings.
- Use tabs for top-level sections and navigation bars for pushed detail screens.
- Give sheets a visible close or confirm action.
- Respect safe areas and available size classes.
5.3 Adapt one product across Android, iOS and the web
A product can keep its identity across platforms while letting familiar controls behave as people expect. Jakob’s law describes the reason: people bring habits from the many other products they use.
Decide what to share
Teams can build fully native interfaces, share a system with platform adaptations, or ship one identical design everywhere. Identical layouts can reduce initial work but may feel unfamiliar. Shared tokens and components with adapted navigation and system controls offer a practical middle path.
Brand color, imagery, tone and the relationships in a type scale can remain recognizable. The platform still influences fonts, measurements, back behavior, pickers, switches and sharing controls.
| Decision | Android | Apple platforms | Web |
|---|---|---|---|
| Layout and text units | dp and sp | pt | CSS px and rem |
| Common system typeface | Roboto | SF Pro | System stack or web font |
| Going back | System back; app hierarchy up | Navigation-bar back and edge swipe | Browser history and page navigation |
| Typical main action | FAB where appropriate | Navigation bar or toolbar action | Action in the page’s task area |
Preserve each input route
Touch needs adequate targets and has no hover. A pointer can use hover states and context menus. Keyboard input needs a logical focus order and visible focus. Essential instructions hidden only in a hover tooltip leave touch users without them. Put the information where all relevant input methods can reach it.
Platform target guidance uses different units: Material minimum touch targets are dp; Apple’s default control size is pt. WCAG 2.2 AA uses CSS px with defined exceptions, while AAA uses CSS px with its own exceptions. These numbers describe different systems and should keep their units.
On the web, link the logo to home, make links recognizable in body text, and support the keyboard throughout. Wide-screen navigation commonly sits at the top; narrow layouts may use a menu button. Hover can add feedback without becoming the only way to use an action.
Adapt a filtering task
A travel product uses the same filter choices and color roles everywhere. On iOS, filters can open in a sheet with "Cancel" and "Apply" in the top bar. On Android, use a full-screen dialog or bottom sheet with familiar close and apply controls. On desktop web, a sidebar can keep the filters beside the results.
Then test system preferences: larger text, dark appearance, increased contrast and reduced motion. Replace large sliding movement with a simpler fade when appropriate. The task and the filter meanings stay shared, while presentation and input behavior fit each environment.
Key Takeaways
- Share product meaning and visual foundations across platforms.
- Adapt navigation, system controls, units and input behavior.
- Provide essential information without requiring hover.
- Keep focus visible and keyboard order logical.
- Check appearance, text size, contrast and motion preferences.
6Create and test high-fidelity prototypes
A polished screen becomes useful evidence when people can try a complete task with realistic content and feedback. High fidelity brings color, type, imagery and interaction details into that test. Build mockups from tested structures, connect the paths the research needs, and preview them on the target device. After testing, distinguish interface failures from missing prototype behavior and use the findings to revise the right component or screen.
6.1 Turn wireframes into high-fidelity mockups
High fidelity brings a design close to the finished experience. It is most useful after low-fidelity work has tested the structure and basic flow, when the team needs to judge detailed styling and interaction.
Separate the dimensions of fidelity
Visual fidelity covers layout, color, typography and imagery. Content fidelity concerns realistic wording. Interaction fidelity covers what responds and how. Data fidelity concerns the range and realism of values shown. A beautiful static screen has high visual detail without being interactive.
| Artifact | What it provides |
|---|---|
| Wireframe | Structure, often using simple boxes and placeholders |
| Mockup | A static screen with polished styling and realistic content |
| Prototype | An interactive model, at low or high fidelity |
A high-fidelity prototype connects polished screens into a working model of selected tasks. Building that polish before testing structure can draw feedback toward colors and make expensive layouts harder to discard.
Build the foundations into the screen
Begin with tested wireframes. Set the grid, spacing scale, text styles and color roles. Build from system components or a sticker sheet. Apply a clear hierarchy, replace placeholders, add consistent imagery and icons, then compare the design with the platform guidelines.
Use real or realistic content early. A card built around "Coffee" may fail with "Organic fair-trade medium roast whole bean coffee, 1 kg". Check empty data, a single item and a long list; the key-point example uses carts with 0, 1 and 250 items and names from 2 to 40 letters. Long content exposes wrapping and truncation problems that short placeholders conceal.
Complete the screen states
A populated screen is only one state. Add empty, loading, error and partial-content versions. An empty saved-recipes screen can explain "No saved recipes yet" and offer a way to discover recipes. A loading state can use skeleton shapes where content will appear. An error needs recovery, such as "Try again". Partial data needs a layout that remains understandable when some content is missing.
Use one icon family with consistent outlined or filled treatment, stroke width and grid, such as units. Add labels where an icon’s meaning is uncertain. Keep image aspect ratios consistent and record which images need alternative text and what it should communicate.
Critique against a task
Before sharing, inspect repeated components, spacing values, color roles and text styles for stray choices. A design tool can reveal layers without styles or variables.
In a critique, state the user problem and ask for specific feedback. "The Pay button gets lost because the promo banner uses the same green" identifies a design cause. "I don’t like green" does not show how the task is affected. Listen, record the reasoning, ask for clarification and decide on changes after the discussion.
Key Takeaways
- Fidelity includes visuals, content, interaction and data.
- Use high fidelity after the structure and flow have been tested.
- Replace short placeholders with realistic content ranges.
- Design empty, loading, error and partial states.
- Keep icons, images and reusable styles consistent.
- Judge critique comments against the user problem.
6.2 Build an interactive prototype
An interactive prototype connects screens and component states so a person can attempt a task. Choose the task first; it determines which paths and details must work.
Connect the behavior
A Figma flow has a starting frame. A hotspot is an interactive layer. Each connection has a trigger, an action and, where needed, a destination and transition. "On click" can trigger "Navigate to" another screen. "Open overlay" presents a menu or sheet above the current screen; "Change to" switches a component variant.
Common triggers include On click, On drag, While hovering, While pressing, Mouse enter, Mouse leave, Key/Gamepad and After delay. Other actions include Back, Scroll to, Swap overlay, Close overlay, Open link, Set variable and Conditional. Select the trigger for the actual input and the action for the intended result.
Build in order: define the test flow, finish its frames, set its starting point, connect interactions, add transitions, then preview and repair the path. Several tasks can have separate flows within one file.
Add motion with a purpose
Instant shows the destination immediately and has no animated duration or easing. Dissolve fades between frames. Move in, Move out, Push, Slide in and Slide out introduce movement. Smart animate interpolates changes in matching layers, using names and positions in the layer hierarchy. Duplicating a frame before editing helps preserve those matches; unmatched layers dissolve.
Animated transitions have a duration and easing curve. Ease out starts quickly and ends slowly, useful for entering elements; ease in accelerates toward the end, useful for leaving. Many interface transitions take about 150–300 ms. Small press feedback can be faster; movement much longer than half a second often feels slow. Use motion to explain location, acknowledge action or guide attention. Offer simpler motion for reduced-motion preferences.
Work through checkout
Create Cart, Shipping, Payment, Payment error and Confirmation frames. Start the "Checkout" flow at Cart.
- Connect "Checkout" to Shipping with On click → Navigate to, Smart animate, ease out, 300 ms.
- Connect "Continue" on Shipping to Payment.
- Connect "Pay" to Confirmation with Dissolve, 200 ms.
- For an error task, connect its payment route to Payment error, with a message explaining how to retry.
- Use Back for return controls and an overlay for "Add promo code".
Build the error task as a deliberate alternative so its result is repeatable. Connect component hover, pressed and toggled variants with Change to for reusable behavior. Configure long-screen scrolling, fixed headers and any horizontal carousels.
Preview the complete task
A dead hotspot can look like a design failure to a participant. Include the main route, important alternatives and recovery paths needed by the test. Add variables or conditional logic when the task needs remembered choices or a working quantity. Preview on the target device: actual text size, reach, targets and daylight contrast are easier to judge there than in a desktop canvas.
Key Takeaways
- Build complete test-task paths with explicit starting points.
- Choose trigger, action and transition as separate decisions.
- Keep matching layer names and hierarchy for Smart animate.
- Use motion to explain a change and respect reduced motion.
- Reuse interactive component variants.
- Preview main paths, alternatives and recovery on the target device.
6.3 Test and refine high-fidelity designs
High-fidelity testing asks how final styling and realistic interactions affect a task. It adds detail to earlier testing: whether the main action survives competing imagery, icons make sense, feedback is noticed and motion helps people understand a change.
Plan tasks that reveal the design
Set research goals, recruit people who represent the users and choose moderated or unmoderated sessions. Match each task to a complete prototype flow and the device people will use. About five participants per round is a common rule of thumb for finding major problems in one user group; further rounds follow changes.
Write scenarios without naming the control. "You want to book a table for four people this Friday at 7 p.m." leaves the route for the participant to discover. "Click the Reserve button" supplies the answer and mainly tests finding a label.
Explain once that the design is being tested, not the person, and that some prototype areas may not work. A finished appearance can make people hesitant to criticize. Invite honest reactions, then record failures caused by a missing connection separately from failures caused by the interface.
Choose evidence for the question
Record task success, errors, time, first clicks, satisfaction and comments. A first-click test checks where someone starts a task. A five-second test checks what they remember after brief exposure. A preference test can compare two looks, especially when participants explain the reasons for a choice.
A simulated prototype may not reproduce production speed or real data. Interpret timing in that setting, and inspect what happened during the attempt before assigning a cause.
Group related notes, for example with an affinity diagram, then prioritize by severity and frequency. If 4 of 5 participants cannot finish because "Apply filters" sits below the visible area, that blockage needs attention before a cosmetic detail mentioned once.
Fix the cause at the right level
In a test, 4 of 5 people miss a "Skip" link in #9E9E9E on white, a 2.68:1 pair. Change it to a text button in #595959, reaching 7.00:1, and place it in the familiar top-right location. If a shared component caused the issue, update the component so every linked screen receives the correction. In the next test round, check whether participants find it; the example’s next round has 5 of 5 successful attempts.
Several design changes happened together, so the result evaluates the revised treatment as a whole. Keep notes on what changed and what the next round shows.
Prepare the design for others
Annotate triggers, states, animation, duration, easing and tokens. Confirm that each screen’s needed states exist. Developers can inspect sizes and shared values in the design file, for example in Figma Dev Mode.
Present the user problem, the process, the design decisions, the findings and the changes that followed. Before-and-after mockups and a short clickable walkthrough make that reasoning concrete for a stakeholder review or portfolio case study.
Key Takeaways
- Write realistic tasks without giving away interface labels.
- Distinguish prototype limitations from interface failures.
- Choose measures that match the research question.
- Rank findings by severity and frequency.
- Update shared causes and test the revision.
- Present decisions with evidence and annotate the behavior needed for development.
UI Design examples
1Make an Equipment Return Screen Easy to Use
13 steps
- 1IntroductionStart with the person’s task
A person opens an equipment-loan app to return a borrowed camera. The screen also contains loan details, a support link and a promotion for new equipment.
The design needs to make the return route easy to recognize while keeping useful details available. We will rank the content, group related information and design controls whose appearance explains what happens next.
- 2ExplanationChoose an order of attention
Visual hierarchy is the order in which people notice and read elements. For this screen, identify the camera and due date, then make the return action clear. Serial-number metadata can carry less weight.
Use size, weight, contrast, position and empty space to create differences. A practical starting point is a main focus, supporting information and details. Making everything prominent removes the differences that create the order.
- 3ExampleReduce the promotion’s weight
The promotion currently has a large saturated background. "Return camera" is plain text beside several other links.
First make the return action a filled button with a clear label. Next give the promotion a quieter neutral surface and less space. Keep the due date readable near the camera name. The design has gained an action focus without enlarging every heading or hiding information about the loan.
- 4ChallengeCheck what survives a blur
You blur the equipment screen until no words are readable. The promotion is still the strongest shape, while the return button nearly disappears. What should change?
---reveal---
Lower the promotion’s relative weight and strengthen the return button’s signifier or contrast. The strongest shape should support the task. Merely making the text of every element bold would keep the competition and make the whole page louder.
- 5ExplanationMake headings useful for scanning
People can scan headings before reading details. Start labels with words they are looking for: "Return location" is easier to identify than "Where you can bring this item back".
Layer-cake scanning follows headings; spotted scanning jumps to a keyword or number. Long, weakly structured text can invite F-shaped scanning. Use meaningful headings and opening words to give people better stopping points.
- 6ExampleGroup loan details and return choices
Place the camera name, due date and loan identifier together. Give the return-location heading a larger separation from that loan group, then put its choices close below it.
Start-align headings and labels to create a stable scanning edge. Try space before adding dividers around every item. The larger outer gap separates topics, while smaller inner gaps show which heading belongs with which choices.
- 7ChallengeDecide what belongs under More
Returning equipment is a common task. Downloading a historical loan statement is rare. A proposal puts both actions under "More". What should stay visible?
---reveal---
Keep the return action directly visible. The statement can use progressive disclosure because it is rarely needed. Hiding both makes a frequent task slower every time; a calmer first view is useful only when it still supports the work people came to do.
- 8ExplanationGive actions visible cues
A filled button suggests a press; an underlined text link suggests navigation. These are signifiers, the visible cues that reveal possible actions.
Label the primary control "Confirm return" so it names a result. A support link can navigate to help, while confirmation performs an action. A text-only control can still be a button: its purpose depends on behavior and context as well as appearance.
- 9Key InsightFocus and selection tell different stories
A locker choice can stay selected while keyboard focus moves to "Confirm return". Selection identifies the chosen locker; focus identifies the element receiving keyboard input.
Design these states differently. A visible focus outline should remain apparent as the person moves between controls. Strengthening the selected locker alone does not show where a keyboard user is currently positioned.
- 10ExampleShow that confirmation is underway
After the person activates "Confirm return", change its label to "Confirming return…" and show progress. Ignore repeated taps during that request.
If the request fails, show a useful message and a retry route. A loading state acknowledges the input; an error state explains the next step. Leaving the unchanged button active can make a successful press look like no response and invite duplicate requests.
- 11ChallengeGive the icon enough room
A return-location icon is 24 dp square. Its interactive area has only the same 24 dp dimensions. How can it meet Material’s minimum touch target while keeping the drawing the same size?
---reveal---
Add 12 dp of interactive padding on every side. The total becomes dp in each dimension. Keep at least 8 dp between neighboring touch targets; enlarging the hit area must not make it collide with another control.
- 12ChallengeReview the whole return route
The revised screen has clear groups and a strong "Confirm return" button. The chosen locker is green with no other selection cue, and the return-location heading starts "Please choose where…". What two refinements help?
---reveal---
Front-load the heading, for example "Return location", and add a visible selected cue such as a checked control or label. Grouping supports scanning, while meaning that depends only on green can be missed when color differences are hard to see.
- 13RecapUse three passes
Review an interface in three passes: rank attention around the task, reveal relationships through headings and spacing, then inspect the controls and their states.
On the equipment screen, those decisions connect the camera information to a clear return action and understandable feedback.
2Set Type and Color for a Course Page
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionMake a course page readable
- 2ExplanationSeparate letter clarity from reading comfort
- 3ExampleSet the description block
- 4ChallengeDiagnose a difficult paragraph
- 5ExplanationMake the sizes a repeatable scale
- 6ExampleMove below the base
- 7ChallengeTest the scale at larger text sizes
- 8ExplanationName the jobs of the colors
- 9ExampleCreate the dark-theme mapping
- 10ChallengeTrace a theme inconsistency
- 11ExplanationUse the right contrast threshold
- 12ExampleCompare two ordinary labels
- 13ExplanationCheck more than letters
- 14ChallengeFind the weak area on the photo
- 15ChallengeReview the finished theme
- 16RecapCheck the combinations
3Build a Document Library Grid
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFit the content deliberately
- 2ExplanationGive each space a name
- 3ExampleCalculate the text stack
- 4ExampleAdd padding and check the neighbor
- 5ChallengeCheck a revised row
- 6ExplanationDivide columns and gutters
- 7ExampleFind one column’s width
- 8ExampleCalculate a three-column card
- 9ChallengeChange the grid’s structure
- 10ChallengeReview the spacing and grid together
- 11RecapKeep the two systems connected
4Build and Maintain a Shared Preference Control
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSolve the shared problem once
- 2ExplanationName the component’s anatomy
- 3ExampleSeparate variants from editable content
- 4ExampleLet the control grow with its label
- 5ChallengeKeep a local edit linked
- 6ExplanationTrace the value to its purpose
- 7ExampleSwitch theme values together
- 8ChallengeChoose the right Figma feature
- 9ExplanationPut the control inside a system
- 10ExampleDocument a decision another team will face
- 11ChallengeReview a proposed addition
- 12ConnectionRelease the change clearly
- 13ChallengeFind the shared cause
- 14RecapMake reuse understandable
5Adapt a Field Notebook Across Platforms
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionKeep the task and adapt the controls
- 2ExplanationUse Material units correctly
- 3ExampleChoose the Android navigation
- 4ChallengeCheck the Android controls
- 5ExplanationUse Apple system foundations
- 6ExampleChoose the iPhone navigation
- 7ChallengeKeep logical size separate
- 8ExplanationChoose the shared layer
- 9TipGive every input a route
- 10ChallengeAdapt a place filter
- 11ChallengeReview a shared implementation
- 12RecapPreserve meaning across environments
6Prototype and Test a Museum Visit Reservation
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionChoose the task to model
- 2ExplanationChoose the needed fidelity
- 3ExampleBuild realistic screens and states
- 4ChallengeFind what the polished screen hides
- 5ExplanationSeparate the trigger from the response
- 6ExampleConnect the first part of the route
- 7ExampleBuild the recovery alternative
- 8ExplanationChoose the transition for its job
- 9ChallengeCheck an overlay interaction
- 10TipUse motion to explain change
- 11ExplanationAsk about the visitor’s goal
- 12ChallengeRepair a leading test task
- 13ExampleSeparate the observed failures
- 14ChallengeChoose the next revision
- 15ChallengeCheck readiness for the next session
- 16RecapShow the evidence behind the revision
UI Design practice questions
Set 1: Apply Layout and Component Rules10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Review Designs Across Screens10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Combine Evidence and Design Decisions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Check States, Themes and Task Paths10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Read Screens and Make Clear Choices10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Action
Affinity diagram
Affordance
Anatomy
Atomic design
Auto layout
B
Baseline grid
C
Color role
Column grid
Component
Component library
Component token
Contrast ratio
Cross-platform adaptation
D
Dark theme
Design critique
Design system
Design token
dp
Dynamic color
Dynamic Type
E
Easing
Empty state
F
Fidelity
First-click test
Five-second test
Fixed grid
Floating action button
Flow
Fluid grid
Focal point
Front-loading
G
Gap
Governance
Gutter
H
Hit target
Hotspot
Human Interface Guidelines
I
Instance
K
Keyboard focus
Keyboard focus order
L
Large text
Leading edge
Legibility
Line height
Line length
Liquid Glass
M
Margin
Mockup
Modular scale
N
Navigation rail
Non-text contrast
O
On-color
P
Padding
Pattern
Platform convention
Point
Primitive token
Progressive disclosure
Prototype
Proximity
R
Readability
Reduced motion
Relative luminance
Rem
S
Safe area
Scrim
Selection
Semantic color
Semantic token
Semantic versioning
Severity
SF Symbols
Sheet
Signifier
Smart animate
sp
Spacing scale
Squint test
State
State layer
Sticker sheet
T
Tab bar
Tabular figures
Task success
Text style
Tonal palette
Transition
Trigger
Type scale
V
Variable mode
Variant
Visual hierarchy
Visual weight
W
White space
Window size class
Wireframe
X
X-height
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.