Complete the code to apply a consistent text color using styles.
text.fill = [1]Using style.fill applies the fill color from the style, ensuring brand consistency.
Complete the code to apply a text style for consistent font settings.
text.textStyleId = [1]Assigning sharedTextStyleId links the text to a shared style, keeping fonts consistent.
Fix the error in applying a color style to a shape fill.
shape.fills = [[1]]Using { type: 'STYLE', styleId: colorStyleId } correctly applies the color style to the fill.
Fill both blanks to apply a consistent text style and color style.
text.textStyleId = [1] text.fillStyleId = [2]
Using sharedTextStyleId and sharedFillStyleId applies consistent font and color styles.
Fill all three blanks to create a rectangle with consistent fill style, stroke style, and corner radius style.
const rect = figma.createRectangle() rect.fills = [[1]] rect.strokes = [[2]] rect.cornerRadius = [3]
Applying fill and stroke styles with type: 'STYLE' and using a style value for corner radius ensures brand consistency.