setAttributes

setAttributes

Set the attributes of a color style. Attributes are merged with existing values, so only the provided attributes are updated.

await colorStyle.setAttributes({ dark: "rgba(10, 10, 10, 0.2)" })

Parameters

Returns

  • Promise<ColorStyle | null> – The updated color style, or null if the style was not found.