Skip to main content

Function: installTokens()

installTokens(document?): void

Defined in: src/ui/tokens/index.ts:129

Add the page-level token stylesheet to a document (once), before its other styles so the implementer's own stylesheets override it. PaintCanvas's elements do this when they're added to the page.

Parameters​

document?​

Document = window.document

Returns​

void