ComPDFKit Web SDK
    Preparing search index...

    Function setTheme

    • Sets the UI theme. The value is case-insensitive; only 'light' and 'dark' are accepted. The theme is not persisted. Non-string values are ignored with a warning.

      Parameters

      • theme: string

        'light' or 'dark'.

      Returns void

      instance.UI.setTheme('dark');