Complete the code to apply a shadow effect style in Figma.
figma.currentPage.selection[0].effects = [[1]];
The DROP_SHADOW effect style is used to add a shadow outside the object. The code sets this effect on the selected object.
Complete the code to create a blur effect style with radius 10.
const blurEffect = { type: [1], radius: 10 };LAYER_BLUR is the effect type used to blur the entire layer with a specified radius.
Fix the error in the effect style assignment to use the correct property name.
node.effects = [1];The effects property expects an array of effect objects with the property 'type'. The correct syntax uses 'type' and an array.
Fill both blanks to create a semi-transparent inner shadow effect with offset x=3 and y=3.
const innerShadow = { type: [1], color: { r: 0, g: 0, b: 0, a: [2] }, offset: { x: 3, y: 3 }, radius: 8 };INNER_SHADOW creates a shadow inside the object. The alpha value 0.5 makes it semi-transparent.
Fill all three blanks to define a background blur effect with radius 12 and visible property true.
const bgBlur = { type: [1], radius: [2], visible: [3] };BACKGROUND_BLUR blurs the area behind the object. Radius 12 sets the blur strength. Visible true makes the effect active.