Bird
Raised Fist0
Figmabi_tool~10 mins

Line and arrow tools 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 draw a straight line using the line tool.

Figma
line = figma.create[1]()
Drag options to blanks, or click blank then click option'
ALine
BRectangle
CEllipse
DText
Attempts:
3 left
💡 Hint
Common Mistakes
Using createRectangle() instead of createLine()
Using createEllipse() which creates a circle or oval
Using createText() which creates text objects
2fill in blank
medium

Complete the code to set the stroke color of the line to red.

Figma
line.strokes = [{ type: 'SOLID', color: { r: 1, g: [1], b: 0 } }]
Drag options to blanks, or click blank then click option'
A0.5
B0
C1
D0.25
Attempts:
3 left
💡 Hint
Common Mistakes
Setting green to 1 or 0.5 which adds green tint
Setting blue to non-zero values
3fill in blank
hard

Fix the error in the code to add an arrowhead at the end of the line.

Figma
line.strokeCaps = ['NONE', '[1]']
Drag options to blanks, or click blank then click option'
AROUND
BSQUARE
CARROW_EQUILATERAL
DNONE
Attempts:
3 left
💡 Hint
Common Mistakes
Using ROUND or SQUARE which do not add arrowheads
Using NONE which removes stroke caps
4fill in blank
hard

Fill both blanks to create a dashed arrow line with stroke weight 3.

Figma
line.strokeWeight = [1]
line.dashPattern = [[2]]
Drag options to blanks, or click blank then click option'
A3
B5
C2
D4
Attempts:
3 left
💡 Hint
Common Mistakes
Using strokeWeight less than 3 for visibility
Using dashPattern values too small or zero
5fill in blank
hard

Fill all three blanks to create a blue arrow line from (10, 20) to (100, 200).

Figma
line.strokeWeight = [1]
line.strokes = [{ type: 'SOLID', color: { r: 0, g: [2], b: [3] } }]
line.vectorPaths = [{ windingRule: 'NONZERO', data: 'M10 20 L100 200' }]
line.strokeCaps = ['NONE', 'ARROW_EQUILATERAL']
Drag options to blanks, or click blank then click option'
A2
B0
C1
D0.5
Attempts:
3 left
💡 Hint
Common Mistakes
Setting green or red to non-zero for blue color
Using strokeWeight too thick or too thin

Practice

(1/5)
1. What is the main purpose of using arrows in Figma designs?
easy
A. To show direction and flow clearly
B. To add color to the design
C. To create text labels
D. To change font styles

Solution

  1. Step 1: Understand the role of arrows

    Arrows are used to indicate direction or flow in a design, helping viewers understand movement or sequence.
  2. Step 2: Compare with other options

    Options A, C, and D relate to color, text, and fonts, which are not the main purpose of arrows.
  3. Final Answer:

    To show direction and flow clearly -> Option A
  4. Quick Check:

    Arrows = Direction and flow [OK]
Hint: Arrows always point the way or flow [OK]
Common Mistakes:
  • Confusing arrows with color tools
  • Thinking arrows add text
  • Mixing arrows with font styles
2. Which key should you hold to draw a perfectly straight line using the Line tool in Figma?
easy
A. Ctrl
B. Shift
C. Alt
D. Tab

Solution

  1. Step 1: Recall the shortcut for straight lines

    Holding the Shift key while drawing a line in Figma locks the angle, making the line perfectly straight.
  2. Step 2: Verify other keys' functions

    Ctrl, Alt, and Tab do not lock line angles in Figma.
  3. Final Answer:

    Shift -> Option B
  4. Quick Check:

    Shift = Straight line [OK]
Hint: Hold Shift to keep lines straight [OK]
Common Mistakes:
  • Using Ctrl instead of Shift
  • Trying Alt for straight lines
  • Pressing Tab key mistakenly
3. Consider you draw a line in Figma and then add an arrowhead at the end. What will this arrow visually represent in your design?
medium
A. A decorative shape with no meaning
B. A connection without direction
C. A directional flow from start to end
D. A text label for the line

Solution

  1. Step 1: Understand arrowhead meaning

    Adding an arrowhead to a line shows direction, indicating flow from the line's start point to its end.
  2. Step 2: Eliminate incorrect options

    A connection without direction lacks direction, C is decorative which is incorrect, and D is unrelated to text labels.
  3. Final Answer:

    A directional flow from start to end -> Option C
  4. Quick Check:

    Arrowhead = Directional flow [OK]
Hint: Arrowhead means flow direction [OK]
Common Mistakes:
  • Thinking arrowheads are just decoration
  • Ignoring direction in arrows
  • Confusing arrows with labels
4. You tried to draw a straight arrow line in Figma but it appears crooked. What is the most likely reason?
medium
A. You did not hold the Shift key while drawing
B. You used the wrong color for the line
C. You added multiple arrowheads
D. You drew the line outside the canvas

Solution

  1. Step 1: Identify the cause of crooked lines

    Not holding Shift while drawing allows free angle movement, causing crooked lines.
  2. Step 2: Check other options

    Color, multiple arrowheads, or canvas position do not affect line straightness.
  3. Final Answer:

    You did not hold the Shift key while drawing -> Option A
  4. Quick Check:

    No Shift = Crooked line [OK]
Hint: Hold Shift to avoid crooked lines [OK]
Common Mistakes:
  • Blaming color for crooked lines
  • Thinking arrowheads cause crookedness
  • Ignoring Shift key usage
5. You want to create a flowchart in Figma showing steps from start to finish with clear direction. Which combination of tools and techniques is best?
hard
A. Draw freehand lines without arrowheads
B. Use only the Text tool to write step names
C. Use shapes without connecting lines
D. Use Line tool with arrowheads and hold Shift to draw straight connectors

Solution

  1. Step 1: Identify flowchart needs

    A flowchart needs clear connections with direction, so lines with arrowheads are essential.
  2. Step 2: Use Shift key for neat lines

    Holding Shift ensures straight connectors, making the flowchart clean and easy to follow.
  3. Step 3: Evaluate other options

    Text alone, freehand lines, or shapes without connectors do not show clear flow or direction.
  4. Final Answer:

    Use Line tool with arrowheads and hold Shift to draw straight connectors -> Option D
  5. Quick Check:

    Lines + arrowheads + Shift = Clear flowchart [OK]
Hint: Combine lines, arrows, and Shift for clear flowcharts [OK]
Common Mistakes:
  • Skipping arrowheads
  • Not holding Shift for straight lines
  • Using only text or shapes without connectors