Member Junction
    Preparing search index...
    Index

    Constructors

    Accessors

    Methods

    • Snapshot the given theme tokens from the live document. Empty/unset tokens are skipped.

      mode captures a SPECIFIC palette rather than whatever the app is rendering right now. Without it, exporting from a dark session bakes dark text onto the export's white page and the file is unreadable. When the requested mode isn't the active one, data-theme is flipped on documentElement, read, and restored — all synchronous within one task, so the browser never paints the intermediate state. Omit mode to read the live values as-is.

      Parameters

      • tokens: readonly string[] = DEFAULT_EXPORT_THEME_TOKENS
      • Optionalmode: "light" | "dark"

      Returns Record<string, string>