0
0
Figmabi_tool~10 mins

Mobile-first design workflow in Figma - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the frame size for a mobile-first design in Figma.

Figma
frame.resize([1], 812)  // Set width for iPhone X height fixed
Drag options to blanks, or click blank then click option'
A375
B1024
C1440
D1920
Attempts:
3 left
💡 Hint
Common Mistakes
Using desktop widths like 1024 or 1440 instead of mobile width.
2fill in blank
medium

Complete the code to add a vertical layout grid suitable for mobile screens in Figma.

Figma
frame.layoutGrids = [{ type: '[1]', sectionSize: 8, visible: true }]
Drag options to blanks, or click blank then click option'
Arows
Bcolumns
Cgrid
Dnone
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'columns' which is more common for desktop layouts.
3fill in blank
hard

Fix the error in the code to set constraints for a mobile-first button component in Figma.

Figma
button.constraints = { horizontal: '[1]', vertical: 'TOP' }
Drag options to blanks, or click blank then click option'
ACENTER
BSCALE
CLEFT_RIGHT
DRIGHT
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'CENTER' which fixes the center but not width.
4fill in blank
hard

Fill both blanks to create a responsive mobile-first text style with proper font size and line height in Figma.

Figma
textStyle = { fontSize: [1], lineHeight: [2] }
Drag options to blanks, or click blank then click option'
A16
B24
C20
D28
Attempts:
3 left
💡 Hint
Common Mistakes
Using desktop font sizes like 20 or 28 which are too large for mobile body text.
5fill in blank
hard

Fill all three blanks to define a mobile-first color style with primary color, opacity, and blend mode in Figma.

Figma
colorStyle = { color: '[1]', opacity: [2], blendMode: '[3]' }
Drag options to blanks, or click blank then click option'
A#007AFF
B0.8
CNORMAL
D#FF9500
Attempts:
3 left
💡 Hint
Common Mistakes
Using blend modes other than 'NORMAL' which can cause unexpected color effects.