Bird
Raised Fist0
Figmabi_tool~10 mins

Breakpoint-based design in Figma - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set a breakpoint for mobile screens in Figma.

Figma
if (screen.width <= [1]) {
  applyMobileLayout();
}
Drag options to blanks, or click blank then click option'
A1200
B768
C1024
D480
Attempts:
3 left
💡 Hint
Common Mistakes
Using tablet or desktop breakpoints for mobile.
2fill in blank
medium

Complete the code to apply tablet layout for screens wider than mobile but less than desktop.

Figma
if (screen.width > 480 && screen.width <= [1]) {
  applyTabletLayout();
}
Drag options to blanks, or click blank then click option'
A480
B1024
C768
D1200
Attempts:
3 left
💡 Hint
Common Mistakes
Using mobile breakpoint value or desktop breakpoint value incorrectly.
3fill in blank
hard

Fix the error in the breakpoint condition for desktop screens.

Figma
if (screen.width > [1]) {
  applyDesktopLayout();
}
Drag options to blanks, or click blank then click option'
A1024
B768
C480
D1200
Attempts:
3 left
💡 Hint
Common Mistakes
Using tablet or mobile breakpoint values for desktop.
4fill in blank
hard

Fill both blanks to create a responsive layout condition for large desktops.

Figma
if (screen.width > [1] && screen.width <= [2]) {
  applyLargeDesktopLayout();
}
Drag options to blanks, or click blank then click option'
A1024
B1200
C1440
D1600
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the lower and upper breakpoint values.
5fill in blank
hard

Fill all three blanks to define breakpoints for mobile, tablet, and desktop layouts.

Figma
if (screen.width <= [1]) {
  applyMobileLayout();
} else if (screen.width <= [2]) {
  applyTabletLayout();
} else if (screen.width > [3]) {
  applyDesktopLayout();
}
Drag options to blanks, or click blank then click option'
A480
B768
C1024
D1200
Attempts:
3 left
💡 Hint
Common Mistakes
Using overlapping or incorrect breakpoint values.

Practice

(1/5)
1. What is the main purpose of breakpoint-based design in Figma for dashboards?
easy
A. To add animations to dashboard elements
B. To adjust the layout for different screen sizes
C. To change the color scheme automatically
D. To create multiple unrelated designs

Solution

  1. Step 1: Understand breakpoint-based design concept

    Breakpoint-based design means changing layout based on screen size.
  2. Step 2: Apply to dashboards in Figma

    Dashboards need to look good on phones, tablets, and desktops by adjusting layout.
  3. Final Answer:

    To adjust the layout for different screen sizes -> Option B
  4. Quick Check:

    Breakpoint-based design = layout adjustment [OK]
Hint: Think about screen size changes and layout shifts [OK]
Common Mistakes:
  • Confusing breakpoints with colors or animations
  • Thinking breakpoints create separate designs
  • Assuming breakpoints only affect fonts
2. Which Figma feature helps create responsive frames for breakpoint-based design?
easy
A. Pen Tool
B. Slice Tool
C. Vector Networks
D. Auto Layout

Solution

  1. Step 1: Identify Figma features for layout

    Auto Layout arranges elements automatically based on rules.
  2. Step 2: Match feature to responsive design

    Auto Layout adjusts frame content when frame size changes, perfect for breakpoints.
  3. Final Answer:

    Auto Layout -> Option D
  4. Quick Check:

    Responsive frames use Auto Layout [OK]
Hint: Auto Layout = automatic resizing and positioning [OK]
Common Mistakes:
  • Choosing Pen Tool which is for drawing
  • Confusing Vector Networks with layout
  • Selecting Slice Tool which is for exporting
3. Given a frame with Auto Layout set to horizontal and fixed width 800px, what happens if the frame width changes to 400px on a smaller screen?
medium
A. Elements inside will stay spaced horizontally and may overflow
B. Elements will automatically stack vertically
C. Frame width will reset to 800px automatically
D. Elements will disappear

Solution

  1. Step 1: Understand Auto Layout horizontal with fixed width

    Horizontal Auto Layout arranges items side by side and fixed width means frame size won't shrink automatically.
  2. Step 2: Effect of reducing frame width

    Since width is fixed, elements keep horizontal layout but may overflow or be cut off.
  3. Final Answer:

    Elements inside will stay spaced horizontally and may overflow -> Option A
  4. Quick Check:

    Fixed width + horizontal layout = overflow on smaller screen [OK]
Hint: Fixed width frames don't resize, causing overflow [OK]
Common Mistakes:
  • Assuming elements stack vertically automatically
  • Thinking frame width changes automatically
  • Believing elements disappear on resize
4. You designed a dashboard frame with Auto Layout but on mobile the elements overlap. What is the likely cause?
medium
A. Frame width is fixed and too wide for mobile screen
B. Auto Layout is set to vertical direction
C. You used too many colors in the design
D. You forgot to add images

Solution

  1. Step 1: Analyze overlapping elements on small screen

    Overlap usually happens when frame cannot shrink and elements stay side by side.
  2. Step 2: Check frame width setting

    If frame width is fixed and wider than screen, elements will overlap or overflow.
  3. Final Answer:

    Frame width is fixed and too wide for mobile screen -> Option A
  4. Quick Check:

    Fixed wide frame causes overlap on small screens [OK]
Hint: Check if frame width is fixed and too large [OK]
Common Mistakes:
  • Blaming Auto Layout direction without checking width
  • Thinking colors cause layout overlap
  • Assuming missing images cause overlap
5. You want a dashboard to show a sidebar on desktop but hide it on mobile using breakpoint-based design in Figma. Which approach is best?
hard
A. Resize sidebar to zero width on mobile using fixed width frame
B. Use Auto Layout to automatically hide sidebar on small screens
C. Create two frames: one with sidebar for desktop, one without for mobile, and switch visibility
D. Change sidebar color to white on mobile to hide it

Solution

  1. Step 1: Understand sidebar visibility needs

    Sidebar should appear on desktop but be hidden on mobile, requiring different layouts.
  2. Step 2: Evaluate Figma options for breakpoint design

    Figma does not auto-hide elements by screen size; best is to create separate frames and toggle visibility.
  3. Step 3: Why other options fail

    Auto Layout cannot hide elements automatically; resizing to zero width with fixed width frame breaks layout; changing color only hides visually but still occupies space.
  4. Final Answer:

    Create two frames: one with sidebar for desktop, one without for mobile, and switch visibility -> Option C
  5. Quick Check:

    Use separate frames and visibility toggle for breakpoints [OK]
Hint: Use separate frames for different screen layouts [OK]
Common Mistakes:
  • Expecting Auto Layout to hide elements automatically
  • Trying to hide by resizing fixed width frames
  • Hiding by color change only, not removing space