Bird
Raised Fist0
Figmabi_tool~10 mins

Eyedropper tool 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 activate the eyedropper tool in Figma.

Figma
figma.currentPage.selection[0].fills = figma.[1]();
Drag options to blanks, or click blank then click option'
AselectColor
BpickColor
CcolorPicker
Deyedropper
Attempts:
3 left
💡 Hint
Common Mistakes
Using a function name that does not exist in Figma API.
Confusing eyedropper with colorPicker.
2fill in blank
medium

Complete the code to store the color picked by the eyedropper tool.

Figma
const pickedColor = await figma.[1]();
Drag options to blanks, or click blank then click option'
ApickFill
BpickColor
Ceyedropper
DselectFill
Attempts:
3 left
💡 Hint
Common Mistakes
Using synchronous functions instead of awaiting the eyedropper.
Using incorrect function names.
3fill in blank
hard

Fix the error in the code to correctly apply the picked color to a rectangle's fill.

Figma
rectangle.fills = [{ type: 'SOLID', color: [1] }];
Drag options to blanks, or click blank then click option'
ApickedColor
BpickedColor.rgb
CpickedColor.hex
DpickedColor.color
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to access non-existent properties like rgb or hex.
Passing a string instead of a color object.
4fill in blank
hard

Fill both blanks to create a function that picks a color and applies it to a selected shape.

Figma
async function applyColor() {
  const color = await figma.[1]();
  figma.currentPage.selection[0].fills = [{ type: 'SOLID', color: [2] }];
}
Drag options to blanks, or click blank then click option'
Aeyedropper
BpickedColor
Ccolor
DpickColor
Attempts:
3 left
💡 Hint
Common Mistakes
Using mismatched variable names.
Using incorrect function names.
5fill in blank
hard

Fill all three blanks to pick a color, check if a shape is selected, and apply the color.

Figma
async function pickAndApply() {
  if (figma.currentPage.selection.length === [1]) {
    const [2] = await figma.[3]();
    figma.currentPage.selection[0].fills = [{ type: 'SOLID', color: pickedColor }];
  }
}
Drag options to blanks, or click blank then click option'
A0
B1
CpickedColor
Deyedropper
Attempts:
3 left
💡 Hint
Common Mistakes
Checking for zero selection instead of one.
Using wrong variable names.
Using wrong function names.

Practice

(1/5)
1. What is the main purpose of the Eyedropper tool in Figma?
easy
A. To pick and reuse colors from anywhere on the screen
B. To create new shapes and icons
C. To add text to your design
D. To export your design as an image

Solution

  1. Step 1: Understand the Eyedropper tool function

    The Eyedropper tool is used to select colors from any visible pixel on the screen.
  2. Step 2: Identify the correct purpose

    It helps keep colors consistent by reusing exact colors from designs or images.
  3. Final Answer:

    To pick and reuse colors from anywhere on the screen -> Option A
  4. Quick Check:

    Eyedropper tool = pick colors [OK]
Hint: Eyedropper picks colors from screen pixels fast [OK]
Common Mistakes:
  • Confusing Eyedropper with shape or text tools
  • Thinking it exports images
  • Assuming it creates new colors
2. Which of the following is the correct way to activate the Eyedropper tool in Figma?
easy
A. Press Ctrl + E (Windows) or Cmd + E (Mac)
B. Press Ctrl + I (Windows) or Cmd + I (Mac)
C. Press Ctrl + P (Windows) or Cmd + P (Mac)
D. Press Ctrl + D (Windows) or Cmd + D (Mac)

Solution

  1. Step 1: Recall Figma shortcut for Eyedropper

    The Eyedropper tool shortcut is Ctrl + E on Windows and Cmd + E on Mac.
  2. Step 2: Match shortcut to options

    Press Ctrl + E (Windows) or Cmd + E (Mac) matches the correct shortcut for activating the Eyedropper tool.
  3. Final Answer:

    Press Ctrl + E (Windows) or Cmd + E (Mac) -> Option A
  4. Quick Check:

    Eyedropper shortcut = Ctrl/Cmd + E [OK]
Hint: Remember E for Eyedropper shortcut [OK]
Common Mistakes:
  • Confusing with shortcuts for other tools
  • Using Ctrl + I which is for Italic text
  • Using Ctrl + P which is for Print
3. You use the Eyedropper tool on a complex image with many colors. What will happen when you click on a pixel?
medium
A. The pixel is deleted from the image
B. A random color from the image is selected
C. The entire image is converted to grayscale
D. The exact color of that pixel is selected and applied to your current object

Solution

  1. Step 1: Understand Eyedropper behavior on images

    The Eyedropper tool picks the exact color of the pixel you click on, no matter how complex the image is.
  2. Step 2: Identify the effect on the current object

    The selected color is applied to the object you are editing, ensuring color accuracy.
  3. Final Answer:

    The exact color of that pixel is selected and applied to your current object -> Option D
  4. Quick Check:

    Eyedropper picks exact pixel color [OK]
Hint: Click pixel to get its exact color instantly [OK]
Common Mistakes:
  • Thinking it picks random colors
  • Assuming it changes the whole image
  • Believing it deletes pixels
4. You try to use the Eyedropper tool but it does not pick the color from a hidden layer. What is the likely problem?
medium
A. You need to restart Figma to enable Eyedropper
B. The Eyedropper tool cannot pick colors from images
C. The Eyedropper tool only works on visible pixels
D. You must unlock the layer before using Eyedropper

Solution

  1. Step 1: Check Eyedropper tool limitations

    The Eyedropper tool only picks colors from pixels that are visible on the screen.
  2. Step 2: Understand hidden layers effect

    If a layer is hidden, its pixels are not visible, so the Eyedropper cannot pick colors from it.
  3. Final Answer:

    The Eyedropper tool only works on visible pixels -> Option C
  4. Quick Check:

    Eyedropper needs visible pixels [OK]
Hint: Make sure layer is visible before picking color [OK]
Common Mistakes:
  • Thinking restart fixes Eyedropper issues
  • Believing Eyedropper can't pick from images
  • Assuming locked layers block Eyedropper
5. You want to keep your brand colors consistent across multiple designs in Figma. How can the Eyedropper tool help you achieve this?
hard
A. By exporting your brand colors as a color palette file
B. By picking exact colors from your brand logo and applying them to new designs
C. By automatically generating new colors similar to your brand colors
D. By locking colors so they cannot be changed

Solution

  1. Step 1: Identify how Eyedropper maintains color consistency

    The Eyedropper tool picks exact colors from any visible pixel, such as your brand logo.
  2. Step 2: Apply picked colors to new designs

    Using the picked colors ensures your new designs use the exact brand colors, keeping consistency.
  3. Final Answer:

    By picking exact colors from your brand logo and applying them to new designs -> Option B
  4. Quick Check:

    Eyedropper picks brand colors for consistency [OK]
Hint: Pick brand colors from logo to reuse exactly [OK]
Common Mistakes:
  • Thinking Eyedropper generates new colors
  • Confusing with exporting palettes
  • Assuming it locks colors automatically