Skip to content

Commit 91a883b

Browse files
committed
feat(ui): inject flame/mist CSS vars into shadow root at mount
1 parent 1a2e692 commit 91a883b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/ui/src/mount.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Launcher } from "./launcher"
55
import { Reporter, type ReporterSubmitResult } from "./reporter"
66
import { createShadowHost, injectStyles, unmountShadowHost } from "./shadow"
77
import cssText from "./styles-inline"
8+
import { themeToCssVars } from "./wizard/theme-css"
89

910
export interface MountOptions {
1011
config: {
@@ -97,6 +98,7 @@ export function mount(opts: MountOptions) {
9798
_onOpen = opts.onOpen
9899
_onClose = opts.onClose
99100
_root = createShadowHost()
101+
injectStyles(_root, themeToCssVars())
100102
injectStyles(_root, cssText)
101103
_container = document.createElement("div")
102104
_root.appendChild(_container)

0 commit comments

Comments
 (0)