Bird
Raised Fist0
Figmabi_tool~10 mins

Overriding instance properties in Figma - Interactive Code Practice

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

Complete the code to override the text property of an instance.

Figma
instance.text = [1]
Drag options to blanks, or click blank then click option'
A"New Text"
BNew Text
Ctext
Dinstance
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to use quotes around the string.
Assigning a variable name instead of a string.
2fill in blank
medium

Complete the code to override the fill color of an instance.

Figma
instance.fills = [{"type": "SOLID", "color": [1]]
Drag options to blanks, or click blank then click option'
A{"r": 1, "g": 0, "b": 0}
B"red"
Cred
D[1, 0, 0]
Attempts:
3 left
💡 Hint
Common Mistakes
Using color names as strings instead of color objects.
Using arrays instead of objects for color.
3fill in blank
hard

Fix the error in overriding the instance's opacity property.

Figma
instance.opacity = [1]
Drag options to blanks, or click blank then click option'
A150
B1.5
C"0.5"
D0.5
Attempts:
3 left
💡 Hint
Common Mistakes
Using values greater than 1.
Using strings instead of numbers.
4fill in blank
hard

Fill both blanks to override the width and height of an instance.

Figma
instance.resize([1], [2])
Drag options to blanks, or click blank then click option'
A100
B200
C"100"
D"200"
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings instead of numbers for dimensions.
Swapping width and height values.
5fill in blank
hard

Fill all three blanks to override the instance's rotation, x, and y position.

Figma
instance.rotation = [1]
instance.x = [2]
instance.y = [3]
Drag options to blanks, or click blank then click option'
A45
B150
C300
D"45"
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings instead of numbers.
Confusing rotation with position values.

Practice

(1/5)
1. What does overriding instance properties in Figma allow you to do?
easy
A. Create a new component from scratch
B. Customize parts of an instance without changing the original component
C. Delete the original component permanently
D. Lock the instance to prevent changes

Solution

  1. Step 1: Understand instance and component relationship

    An instance is a copy of a component that inherits its properties.
  2. Step 2: Recognize what overriding means

    Overriding lets you change specific properties of an instance without affecting the original component.
  3. Final Answer:

    Customize parts of an instance without changing the original component -> Option B
  4. Quick Check:

    Overriding = Customize instance only [OK]
Hint: Remember: override changes instance, not original [OK]
Common Mistakes:
  • Thinking overriding deletes the original component
  • Confusing overriding with creating new components
  • Believing overriding locks the instance
2. Which of the following is the correct way to override the text property of an instance in Figma?
easy
A. Double-click the instance and edit the text directly
B. Edit the original component's text
C. Right-click and select 'Detach Instance'
D. Use the 'Lock' option on the instance

Solution

  1. Step 1: Identify how to edit instance text

    Double-clicking an instance allows direct editing of its text property.
  2. Step 2: Understand difference from editing component

    Editing the original component changes all instances, not just one.
  3. Final Answer:

    Double-click the instance and edit the text directly -> Option A
  4. Quick Check:

    Edit instance text = Double-click instance [OK]
Hint: Double-click instance to change text quickly [OK]
Common Mistakes:
  • Editing the original component instead of the instance
  • Detaching instance unnecessarily
  • Locking instance instead of editing
3. Given a component with a blue rectangle and text 'Hello', if you override the rectangle color to red in an instance, what will happen when you update the original component's rectangle color to green?
medium
A. The instance rectangle changes to green, text changes to original component's text
B. The instance rectangle changes to green, text changes to 'Hello'
C. The instance rectangle stays red, text remains 'Hello'
D. The instance rectangle stays red, text changes to original component's text

Solution

  1. Step 1: Understand property overriding behavior

    Overridden properties in an instance stay as set, ignoring component updates for those properties.
  2. Step 2: Apply to rectangle color and text

    Rectangle color overridden to red stays red; text not overridden remains synced with component ('Hello').
  3. Final Answer:

    The instance rectangle stays red, text remains 'Hello' -> Option C
  4. Quick Check:

    Overridden color stays, non-overridden text syncs [OK]
Hint: Overridden properties ignore component updates [OK]
Common Mistakes:
  • Assuming all instance properties update with component
  • Thinking overridden text changes automatically
  • Confusing overridden and non-overridden properties
4. You tried to override the fill color of an instance, but the color did not change. What is the most likely reason?
medium
A. The fill color is locked in the original component
B. You edited the original component instead of the instance
C. The instance is detached from the component
D. You did not select the fill property in the instance

Solution

  1. Step 1: Check if fill color can be overridden

    Some properties like fill color can be locked in the component, preventing overrides.
  2. Step 2: Understand why color didn't change

    If locked, changing fill on instance has no effect; you must unlock in component.
  3. Final Answer:

    The fill color is locked in the original component -> Option A
  4. Quick Check:

    Locked property blocks override [OK]
Hint: Check if property is locked before overriding [OK]
Common Mistakes:
  • Editing original component instead of instance
  • Assuming detaching fixes override issues
  • Forgetting to select the correct property
5. You have a button component with text and background color. You want to create an instance with a different text and a different icon image, but keep the background color linked to the component. How should you override the instance properties?
hard
A. Override all properties including background color to new values
B. Create a new component for the different text and icon
C. Detach the instance and edit all properties freely
D. Override the text and icon image properties only, leave background color unchanged

Solution

  1. Step 1: Identify which properties to override

    To keep background color linked, do not override it; override only text and icon image.
  2. Step 2: Understand impact of overriding background color

    Overriding background color breaks link to component updates; avoid if you want consistency.
  3. Final Answer:

    Override the text and icon image properties only, leave background color unchanged -> Option D
  4. Quick Check:

    Override selective properties to keep component link [OK]
Hint: Override only what changes, keep others linked [OK]
Common Mistakes:
  • Overriding background color unnecessarily
  • Detaching instance losing component benefits
  • Creating new component instead of overriding
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard