Skip to main content
Adds a <style> tag into the page with the desired content or URL. Can be used to inject custom CSS to alter the page’s appearance. Example: addStyleTag(options: { content: "body { background-color: blue; }" }) Returns true if the style tag was successfully added.

Definition

Arguments

options

AddStyleTagOptions! Options for the style tag, such as content or URL.

Returns

Boolean! The Boolean scalar type represents true or false.