• Resolve the host's current palette to concrete colors and post it to the iframe. Call this inside the theme store's applyAndSet AND in reply to a 'texbrain:ready' handshake so the editor is themed before first paint (no Amber flash).

    Parameters

    • frame: null | Window

      the iframe's contentWindow (null is a no-op — frame not mounted)

    • targetOrigin: string

      the embedded editor's origin (EDITOR_ORIGIN); never '*'

    • s: ThemePushState

      the active preset/mode/overrides/overrideAlphas

    Returns void