Bird
Raised Fist0
Figmabi_tool~10 mins

Text decoration and case 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 make the text bold in Figma.

Figma
textNode.fontName = { family: 'Roboto', style: '[1]' };
Drag options to blanks, or click blank then click option'
AItalic
BRegular
CBold
DLight
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Regular' instead of 'Bold' will not make text bold.
Using 'Italic' changes style but not weight.
2fill in blank
medium

Complete the code to underline the text in Figma.

Figma
textNode.textDecoration = '[1]';
Drag options to blanks, or click blank then click option'
Aoverline
BNONE
CSTRIKETHROUGH
DUNDERLINE
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'NONE' removes any decoration.
Using 'STRIKETHROUGH' adds a strike-through, not underline.
3fill in blank
hard

Fix the error in the code to convert text to uppercase in Figma.

Figma
textNode.characters = textNode.characters.[1]();
Drag options to blanks, or click blank then click option'
AtoUpperCase
BtoLowerCase
Ccapitalize
Duppercase
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'uppercase' is not a valid JavaScript method.
Using toLowerCase() converts text to lowercase.
4fill in blank
hard

Fill both blanks to make the text italic and strikethrough in Figma.

Figma
textNode.fontName = { family: 'Roboto', style: '[1]' };
textNode.textDecoration = '[2]';
Drag options to blanks, or click blank then click option'
AItalic
BBold
CSTRIKETHROUGH
DUNDERLINE
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Bold' instead of 'Italic' changes weight, not slant.
Using 'UNDERLINE' instead of 'STRIKETHROUGH' adds underline, not strikethrough.
5fill in blank
hard

Fill all three blanks to set font to bold, underline text, and convert characters to lowercase in Figma.

Figma
textNode.fontName = { family: 'Roboto', style: '[1]' };
textNode.textDecoration = '[2]';
textNode.characters = textNode.characters.[3]();
Drag options to blanks, or click blank then click option'
ABold
BUNDERLINE
CtoLowerCase
DItalic
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Italic' instead of 'Bold' changes style but not weight.
Using 'STRIKETHROUGH' instead of 'UNDERLINE' changes decoration.
Using toUpperCase() instead of toLowerCase() changes case incorrectly.

Practice

(1/5)
1. Which text decoration in Figma adds a line below the text to emphasize it?
easy
A. Shadow
B. Strikethrough
C. Overline
D. Underline

Solution

  1. Step 1: Understand text decoration types

    Underline adds a line below text, strikethrough adds a line through the middle, overline adds a line above.
  2. Step 2: Identify the decoration that adds a line below

    Underline is the decoration that places a line below the text to emphasize it.
  3. Final Answer:

    Underline -> Option D
  4. Quick Check:

    Underline = line below text [OK]
Hint: Underline means line below text, easy to remember [OK]
Common Mistakes:
  • Confusing underline with strikethrough
  • Thinking shadow is a line
  • Mixing overline with underline
2. Which of the following is the correct way to set text to uppercase in Figma's text properties panel?
easy
A. Select text, then choose 'lowercase' option
B. Select text, then choose 'uppercase' option
C. Select text, then choose 'capitalize' option
D. Select text, then choose 'strikethrough' option

Solution

  1. Step 1: Review text case options in Figma

    Figma offers lowercase, uppercase, and capitalize options to change text case.
  2. Step 2: Identify the option that converts text to all uppercase letters

    The 'uppercase' option changes all letters to capital letters.
  3. Final Answer:

    Select text, then choose 'uppercase' option -> Option B
  4. Quick Check:

    Uppercase option = all capital letters [OK]
Hint: Uppercase means all letters capitalized [OK]
Common Mistakes:
  • Choosing lowercase instead of uppercase
  • Confusing capitalize with uppercase
  • Selecting strikethrough by mistake
3. Given a text layer in Figma with the text "hello world" and the text case set to 'capitalize', what will be the displayed text?
medium
A. Hello World
B. HELLO WORLD
C. hello world
D. HeLLo WoRLD

Solution

  1. Step 1: Understand the 'capitalize' text case effect

    Capitalize changes the first letter of each word to uppercase and the rest to lowercase.
  2. Step 2: Apply capitalize to 'hello world'

    Each word's first letter becomes uppercase: 'Hello World'.
  3. Final Answer:

    Hello World -> Option A
  4. Quick Check:

    Capitalize = first letter uppercase [OK]
Hint: Capitalize means first letter uppercase in each word [OK]
Common Mistakes:
  • Confusing capitalize with uppercase
  • Expecting all lowercase
  • Mixing random letter cases
4. You applied strikethrough to a text layer in Figma, but the line does not appear. What is the most likely reason?
medium
A. You need to select underline instead of strikethrough
B. Strikethrough is not supported in Figma
C. The text color is the same as the background color
D. The font size is too large

Solution

  1. Step 1: Check if strikethrough is supported in Figma

    Figma supports strikethrough, so Strikethrough is not supported in Figma is incorrect.
  2. Step 2: Consider visibility issues

    If the text color matches the background, the strikethrough line won't be visible.
  3. Final Answer:

    The text color is the same as the background color -> Option C
  4. Quick Check:

    Invisible line = color matches background [OK]
Hint: Check color contrast if decoration is invisible [OK]
Common Mistakes:
  • Thinking strikethrough is unsupported
  • Confusing underline with strikethrough
  • Blaming font size for missing line
5. You want to create a report title in Figma that is all uppercase, underlined, and visually clear on both light and dark backgrounds. Which combination of settings is best?
hard
A. Set text case to uppercase, apply underline, use a high-contrast color like white on dark or black on light
B. Set text case to lowercase, apply strikethrough, use gray color
C. Set text case to capitalize, no decoration, use pastel colors
D. Set text case to uppercase, apply overline, use same color as background

Solution

  1. Step 1: Identify text case for all uppercase

    Use uppercase setting to make all letters capital.
  2. Step 2: Choose underline for emphasis

    Underline adds a clear line below the title for emphasis.
  3. Step 3: Select high-contrast colors for visibility

    White on dark or black on light ensures text is visible on both backgrounds.
  4. Final Answer:

    Set text case to uppercase, apply underline, use a high-contrast color like white on dark or black on light -> Option A
  5. Quick Check:

    Uppercase + underline + high contrast = clear title [OK]
Hint: Use uppercase + underline + high contrast for clear titles [OK]
Common Mistakes:
  • Using lowercase or capitalize instead of uppercase
  • Choosing strikethrough instead of underline
  • Using low contrast colors