Complete the code to select a font family for your text in Figma.
text.fontName = { family: '[1]', style: 'Regular' }The Roboto font is a popular, clean sans-serif font commonly used in UI design.
Complete the code to set the font style to italic in Figma.
text.fontName = { family: 'Roboto', style: '[1]' }The Italic style slants the text, often used for emphasis or quotes.
Fix the error in the font pairing code to combine a serif and sans-serif font.
heading.fontName = { family: '[1]', style: 'Bold' }
body.fontName = { family: '[2]', style: 'Regular' }Pairing Georgia (a serif font) for headings with Arial (a sans-serif font) for body text creates a balanced, readable design.
Fill both blanks to create a font pairing with contrast: a light sans-serif and a bold serif.
title.fontName = { family: '[1]', style: '[2]' }
paragraph.fontName = { family: 'Times New Roman', style: 'Bold' }Open Sans Light provides a clean, light sans-serif contrast to the bold serif of Times New Roman.
Fill all three blanks to set a font pairing with a serif heading, sans-serif body, and italic accent.
heading.fontName = { family: '[1]', style: 'Bold' }
body.fontName = { family: '[2]', style: 'Regular' }
caption.fontName = { family: '[3]', style: 'Italic' }Georgia Bold for headings, Lato Regular for body, and Roboto Italic for captions create a harmonious font pairing with clear hierarchy and emphasis.