diff --git a/packages/core/engine/primitives/attach.ts b/packages/core/engine/primitives/attach.ts index 34e8520..9a080ea 100644 --- a/packages/core/engine/primitives/attach.ts +++ b/packages/core/engine/primitives/attach.ts @@ -122,7 +122,7 @@ function setColors(flattened: FlattenColor[], element?: HTMLElement | null) { function setColorSheet(flattened: FlattenColor[]) { const sheet = new CSSStyleSheet() sheet.replace(`:root {${flattened.map(({ name, color }) => `${name}: ${color};`).join('')}}`) - document.adoptedStyleSheets = [...document.adoptedStyleSheets, sheet] + document.adoptedStyleSheets = [sheet] } function setElementColors(element: HTMLElement, colors: FlattenColor[]) {