linXiv frontend (TS/JS)
    Preparing search index...

    Function pushThemeToEditor

    • Resolve the host's current palette to concrete colors and post it to the iframe. Call from the theme store's applyAndSet AND on 'texbrain:ready', so the editor is themed before first paint.

      Parameters

      • frame: Window | null

        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