@wppconnect/wa-js - v3.20.1
    Preparing search index...

    Function getTheme

    • Get current theme setting

      Returns Theme

      // Get current theme
      const theme = WPP.conn.getTheme();
      console.log(theme); // "light", "dark", or "system"

      // Using enum
      import { Theme } from '@wppconnect/wa-js';
      if (theme === Theme.DARK) {
      console.log('Dark mode is enabled');
      }